Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
get_sfunction_from_hash: Add doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Aug 24, 2021
1 parent 1d07a02 commit e9c8637
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/sage/symbolic/pynac_function_impl.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@ cpdef get_sfunction_from_serial(unsigned int serial):
cpdef get_sfunction_from_hash(long myhash):
"""
Return an already created :class:`SymbolicFunction` given the hash.
EXAMPLES::
sage: from sage.symbolic.expression import get_sfunction_from_hash
sage: get_sfunction_from_hash(1) # random
"""
for sfunc in sfunction_serial_dict.itervalues():
if isinstance(sfunc, SymbolicFunction) and \
Expand Down

0 comments on commit e9c8637

Please sign in to comment.