Ask Your Question
1

Package that is used for the sage.symbolic.expression.Expression

asked 2022-07-20 17:00:04 +0100

Pickle gravatar image

Hi,

I am wondering what package is used for the core sage.symbolic.expression.Expression object? Does this utilize SymPy's sympy.core.symbol.Symbol?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-07-20 19:49:14 +0100

tmonteil gravatar image

updated 2022-07-20 19:58:47 +0100

The library behind symbolic expressions is a fork of ginac that was named pynac and was then incorporated into Sage source code directly. Expressions can be turned into Sympy objects with the _sympy_ method:

e = pi
print(type(e))
print(type(e._sympy_()))
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2022-07-20 17:00:04 +0100

Seen: 121 times

Last updated: Jul 20 '22