comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Math Question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Math Question [message #51098 is a reply to message #51093] Mon, 30 October 2006 13:07 Go to previous messageGo to previous message
news.qwest.net is currently offline  news.qwest.net
Messages: 137
Registered: September 2005
Senior Member
"Jo Klein" <jo_kln@yahoo.co.uk> wrote in message
news:ei5mlj$sd3$1@frank-exchange-of-views.oucs.ox.ac.uk...
>> Just out of curiosity, has anyone tried this on Matlab? I'd expect the
>> same (or similar) results, but it'd be interesting if they weren't.
> Matlab returns the real part of the argument if it's a real number you put
> in:
>>> -0.1^2.0
>
> ans =
> -0.0100


I think you have an order of operations problem there.
Matlab has given you
>> -(0.1^2.0)

instead of the intended
>> (-0.1)^2.0

likewise in the other case

Cheers,
bob
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Determining a safe variable name from a string
Next Topic: overlaying arrow plots

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 02:08:07 PDT 2025

Total time taken to generate the page: 2.07915 seconds