The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Symbolic expressions
Replies: 3   Last Post: Feb 20, 2013 9:26 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Christopher Creutzig

Posts: 323
Registered: 2/24/09
Re: Symbolic expressions
Posted: Feb 20, 2013 8:58 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 16.02.13 15:06, Shishir Jaiswal wrote:
> I need to define a positive symbolic expression say 'n'.
> I am using 'sym' or 'syms' (for multiple symbols). In one machine (PC) it is working fine but in another following error is coming:

Just a quick note: The difference between sym and syms is not whether
you want a single or multiple symbols. It is true that syms can create
multiple symbols at the same time, but the primary difference is that
syms assigns the symbolic variable to the name given:

>> sym x

ans =


>> whos
Name Size Bytes Class Attributes

ans 1x1 112 sym

>> syms x
>> whos

Name Size Bytes Class Attributes

ans 1x1 112 sym
x 1x1 112 sym

Also, sym can handle expressions, while syms only defines variables and
abstract functions. Note that entering expressions into sym is not
really recommended, since the syntax is subtly different from MATLAB


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.