Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

hi and thanks for your answers i made this :

(--) sage -sh -c 'echo $SAGE_ROOT'
/Applications/SageMath-9-5.app/Contents/Frameworks/Sage.framework/Versions/9.5
(--) export PATH=/Applications/SageMath-9-5.app/Contents/Frameworks/Sage.framework/Versions/9.5:$PATH

now, the programm as typed below gives this error :

    f(x,y)=(-x)/(1+y)+2*x
    ^
    SyntaxError: cannot assign to function call

for info, the which command gives :

   (--) which sage
   /usr/local/bin/sage

hi and thanks for your answers i made this :

(--) sage -sh -c 'echo $SAGE_ROOT'
/Applications/SageMath-9-5.app/Contents/Frameworks/Sage.framework/Versions/9.5
(--) export PATH=/Applications/SageMath-9-5.app/Contents/Frameworks/Sage.framework/Versions/9.5:$PATH

now, the programm as typed below gives this error :

    f(x,y)=(-x)/(1+y)+2*x
    ^
    SyntaxError: cannot assign to function call

my interpretation is that this syntax is not recognized as sage syntax ; indeed it is not a python syntax ; i guess that the sage interpretor is not called ; what shall i do ?

for info, the which command gives :

   (--) which sage
   /usr/local/bin/sage