You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from sympy import Symbol, pi
from lpython import S
def main0():
x: S = pi
y: S = Symbol('y')
z: S = S(45)*S(3)*x + S(45.5)*y
e: S = S(45) # SymPy Integer
print(z)
main0()
I did give this a try and mostly everything works as I would expect . I've pasted relevant parts from the ASR and the C generated code below @certik , @rebcabin
Yes, we'll do all of this. But first let's finish #1846 without adding any new features, just polish it up and let's get it merged. Then you can send a new PR that implements the above.
Talking about numerics we are supporting the long signed and the long unsigned integer as of now . Adding support for floats & complex numbers also could be achieved . Maybe after that the issue could be closed .
Activity
certik commentedon Jun 14, 2023
This is consistent with LPython:
rebcabin commentedon Jun 14, 2023
Very Nice!
anutosh491 commentedon Jun 17, 2023
I did give this a try and mostly everything works as I would expect . I've pasted relevant parts from the ASR and the C generated code below @certik , @rebcabin
certik commentedon Jun 17, 2023
Yes, we'll do all of this. But first let's finish #1846 without adding any new features, just polish it up and let's get it merged. Then you can send a new PR that implements the above.
anutosh491 commentedon Aug 9, 2023
Talking about numerics we are supporting the long signed and the long unsigned integer as of now . Adding support for floats & complex numbers also could be achieved . Maybe after that the issue could be closed .