Symbolic Math Toolbox | ![]() |
Obsolete Functions
This version maintains some compatibility with version 1. For example, the following obsolete functions continue to be available in version 2, though you should avoid using them as future releases may not include them.
In version 1, these functions accepted strings as arguments and returned strings as results. In version 2, they accept either strings or symbolic objects as input arguments and produce symbolic objects as results. Version 2 provides overloaded MATLAB operators or new functions that you can use to replace most of these functions in your existing code.
For example, the version 1 statements
continue to work in version 2. However, with version 2, the preferred approach is
H = sym(hilb(3)) I = sym(eye(3)) X = linsolve(H,I) t = sym(0) for j = 1:3 t = symadd(t,sym(X,j,j)) end t
continue to work in version 2. However, the preferred approach is
You can no longer use the sym
function in this way:
Instead, you must change the code to something like this:
As in version 1, you can supply diff
, int
, solve,
and dsolve
with string arguments in version 2. In version 2, however, these functions return symbolic objects instead of strings.
For some computations, the new release of Maple produces results in a different format.
For example, with version 1, the statement
x = [ -RootOf(_Z^3-2*_Z^2-4*_Z-3)-2] [-RootOf(3*_Z^3+6*_Z^2-12*_Z+7)+2] y = [ RootOf(_Z^3-2*_Z^2-4*_Z-3)] [RootOf(3*_Z^3+6*_Z^2-12*_Z+7)]
The same statement works in version 2, but produces results with the RootOf
expressions expanded to exhibit the multiple solutions.
![]() | Compatibility Guide |