f(x):=x^2; Echo({"The square of two is ",f(2)}); |
In> PrettyForm(Taylor(x,0,9)Sin(x)) / 3 \ 5 / 7 \ 9 -\ x / x -\ x / x x + ------- + --- + ------- + ------ 6 120 5040 362880 Out> True; |
PrettyPrinter("PrettyForm"); |
This function is different from Read() in that it parses an expression in lisp syntax: so you need to type (+ a b) in stead of a+b. The advantage of lisp syntax is that it is less unambiguous than the infix operator grammar Yacas uses by default.