| Contents | Index |
result = evalin(symengine,'MuPAD_expression')
[result,status] = evalin(symengine,'MuPAD_expression')
result = evalin(symengine,'MuPAD_expression') evaluates the MuPAD expression MuPAD_expression, and returns result as a symbolic object.
[result,status] = evalin(symengine,'MuPAD_expression') returns the error status in status and the error message in result if status is nonzero. If status is 0, result is a symbolic object; otherwise, it is a string.
Compute the discriminant of the following polynomial:
evalin(symengine,'polylib::discrim(a*x^2+b*x+c,x)')
The result is:
ans = b^2 - 4*a*c
Do not use evalin to access the MuPAD log function that represents the logarithm to an arbitrary base. The evalin command evaluates log as the natural logarithm (the appropriate MuPAD function is ln):
evalin(symengine,'log(E)')
ans = 1
Evaluating log with two parameters results in the following error:
evalin(symengine,'log(10, 10)')
Error using mupadengine.mupadengine>mupadengine.evalin MuPAD error: Error: expecting one argument [ln]
doc | feval | read | symengine

See how symbolic computations can help you find analytical solutions to math and engineering problems.
Get free kit| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |