Page 1 sur 1

'=' python syntax

Publié : jeu. juin 06, 2019 10:41 pm
par compsystems
Hello BP

error when interpreting '=' on python syntax

solve(a*x^2+b*x+c=0,x,'=') [enter] please use "..." for strings

solve(a*x^2+b*x+c=0,x,"=") [enter] fsolve(equal(a*x**2+b*x+c,0),x,"=")

Re: '=' python syntax

Publié : ven. juin 07, 2019 5:17 am
par parisse
Replace '=' by equal. It's difficult to guess what '' really means in Python syntax.

Re: '=' python syntax

Publié : ven. juin 07, 2019 3:27 pm
par compsystems
solve(a*x^2+b*x+c=0,x,equal) [enter] ok