Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

Topic: Not allowing complex values
Replies: 4   Last Post: May 21, 2011 11:20 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Red Star

Posts: 135
Registered: 6/28/08
Re: Not allowing complex values
Posted: May 20, 2011 2:44 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 20 Mag, 19:34, "Steven_Lord" <sl...@mathworks.com> wrote:
> "Allamarein" <matteo.diplom...@gmail.com> wrote in message
>
> news:42e1b8a1-592b-4b3f-a5c9-5f0e5a270a71@y31g2000vbp.googlegroups.com...
>

> > I would Matlab does not accept complex variables.
> > Thus I would declar every variable as 'double precision'.
> > If Matlab returns an error or a warning for complex values, this
> > trick  would save me by banal errors using inverse trigonometric
> > functions and square root.

>
> You know, you can check if a variable is complex or not using the ISREAL
> function.
>
> --
> Steve Lord
> sl...@mathworks.com
> To contact Technical Support use the Contact Us link onhttp://www.mathworks.com


Of course, but I should check every variables.
If I knew there is a bug in my code, I would eliminate it.
I only want Matlab is more rigorous, for example like Fortran



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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.