Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
R2009a; Cannot use E, I, and PI as symbolic variables?

Subject: R2009a; Cannot use E, I, and PI as symbolic variables?

From: Joerg Buchholz

Date: 21 Mar, 2009 20:45:04

Message: 1 of 3

Where in the Matlab documentation can I find the information that I must not use E, I, and PI as symbolic variables?

syms E I PI

s = simple (E^(I*PI))
 
s =
 
-1

Subject: R2009a; Cannot use E, I, and PI as symbolic variables?

From: Nasser Abbasi

Date: 21 Mar, 2009 21:27:57

Message: 2 of 3


"Joerg Buchholz" <buchholz@hs-bremen.de> wrote in message
news:gq3jkg$sfq$1@fred.mathworks.com...
> Where in the Matlab documentation can I find the information that I must
> not use E, I, and PI as symbolic variables?
>
> syms E I PI
>
> s = simple (E^(I*PI))
>
> s =
>
> -1

Seems like a Mupad thingy. do help sym, see the " instead of the usual MuPAD
definition" part below.

"EDU>> help sym
....
    Defining any of the symbols

       beta, gamma, psi, theta, zeta, D, E, I, O, Ei, Ci, Si

    will treat that symbol as a variable instead of the usual MuPAD
    definition. Defining the symbol 'i' will use sqrt(-1) in place of the
    imaginary i until 'clear' is used.
    See also: SYMS."

--Nasser

Subject: R2009a; Cannot use E, I, and PI as symbolic variables?

From: Joerg Buchholz

Date: 22 Mar, 2009 09:32:02

Message: 3 of 3

"Nasser Abbasi" <nma@12000.org> wrote in message <zZcxl.16196$as4.14780@nlpi069.nbdc.sbc.com>...
>
> "Joerg Buchholz" <buchholz@hs-bremen.de> wrote in message
> news:gq3jkg$sfq$1@fred.mathworks.com...
> > Where in the Matlab documentation can I find the information that I must
> > not use E, I, and PI as symbolic variables?
> >
> > syms E I PI
> >
> > s = simple (E^(I*PI))
> >
> > s =
> >
> > -1
>
> Seems like a Mupad thingy. do help sym, see the " instead of the usual MuPAD
> definition" part below.
>
> "EDU>> help sym
> ....
> Defining any of the symbols
>
> beta, gamma, psi, theta, zeta, D, E, I, O, Ei, Ci, Si
>
> will treat that symbol as a variable instead of the usual MuPAD
> definition. Defining the symbol 'i' will use sqrt(-1) in place of the
> imaginary i until 'clear' is used.
> See also: SYMS."
>
> --Nasser
>

Nasser,

I do not see how your post answers my question. "help sym" tells us that we CAN use "E" and "I" as symbolic variables. My example shows that this is NOT the case.

Joerg

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us