Skip to Main Content Skip to Search
Product Documentation

Version 3.1 (R14) Symbolic Math Toolbox and Extended Symbolic Math Toolbox Software

This table summarizes what's new in version 3.1 (R14):

New Features and Changes

Version Compatibility Considerations

Fixed Bugs and Known Problems

Yes
Details below

No

No

New features and changes introduced in this version are described here:

Rounding Operations

The following new functions perform rounding operations on symbolic arrays:

For example,

x = sym([2.5; -9.639])
[fix(x) floor(x) round(x) ceil(x) frac(x)]
 
x =
        5/2
 -9639/1000
 
ans =
[         2,         2,         3,         3,       1/2]
[        -9,       -10,       -10,        -9, -639/1000]

Quotient and Remainder for Division of Integers and Polynomials

The new function quorem computes the quotient and remainder for division of integers and polynomials. For example,

syms x y
p = x^3-2*x+5
[q,r] = quorem(x^5,p)

p =
x^3-2*x+5
 
q =
x^2+2
 
r =
-5*x^2-10+4*x

Dirac and Step Functions

The following new functions compute the Dirac delta and Heaviside functions:

For example,

dirac([-1 0 1])

ans =
     0   Inf     0

heaviside([-1 0 1])

ans =
     0   NaN     1

Sorting Symbolic Expressions

The new function sort sorts symbolic expressions. For example,

syms a b c d e x
sort([a c e b d])
 
ans =
[ a, b, c, d, e]
sort([a c e b d]*x.^(0:4).')
 
ans =
x^4*d+x^3*b+e*x^2+x*c+a

Coefficients of Multivariable Expressions

The new function coeffs computes coefficients of a multivariate polynomial. For example,

syms c t x y
t = 2 + (3 + 4*log(x))^2 - 5*log(x);
coeffs(expand(t))
 
ans =
[ 11, 19, 16]

z = 3*x^2*y^2 + 5*x*y^3
[c,t] = coeffs(z,y)
 
z =
3*x^2*y^2+5*x*y^3
 
c =
[ 3*x^2,   5*x]

t =
[ y^2, y^3]

Multidimensional Symbolic Arrays

The new function reshape reshapes symbolic arrays. For example,

syms x
A = reshape(x.^(1:9),1,3,3)
 
A(:,:,1) = 
[   x, x^2, x^3]
 
A(:,:,2) = 
[ x^4, x^5, x^6]
 
A(:,:,3) = 
[ x^7, x^8, x^9]

Conversion to Nondouble Numeric Data Types

The following new functions enable you to convert symbolic arrays to nondouble numeric data types:

Logarithms to Base 2 and Base 10

The following new functions enable you to compute the logarithm of symbolic arrays to base 2 and base 10:

Modulus After Division

The new function mod computes modulus after division. For example,

syms x
mod(x^3-2*x+999,10)
 
ans =
x^3+8*x+9
  


Free Symbolic Math Interactive Kit

See how symbolic computations can help you find analytical solutions to math and engineering problems.

Get free kit

Trials Available

Try the latest version of symbolic math products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS