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

Home » Public Forums » archive » An IDL NORM alternative without overflow
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
An IDL NORM alternative without overflow [message #88577] Wed, 14 May 2014 02:16 Go to next message
zhangj.sdu is currently offline  zhangj.sdu
Messages: 6
Registered: December 2013
Junior Member
Dear all,
I want to calculate the L2 norm of a vector, for example,a=[0.68056D+200, 0.25521D+200, 0.34028D+200,0.85071D+200, 0.25521D+200, 0.85071D+200]. The IDL NORM function gave nothing but "Program caused arithmetic error: Floating overflow" and "Infinity". Any another IDL solution to avoid this problem?
Thanks.
Clark
Re: An IDL NORM alternative without overflow [message #88578 is a reply to message #88577] Wed, 14 May 2014 02:44 Go to previous message
Fabzi is currently offline  Fabzi
Messages: 305
Registered: July 2010
Senior Member
On 14.05.2014 11:16, Zhang Jiang wrote:
> Any another IDL solution to avoid this problem?

Use better units for your vector, for example by dividing it by 1D200 ?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Install IDL 7.0 on Mac 10.8 Error
Next Topic: How to set error bar thickness in ERRORPLOT()?

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

Current Time: Wed Oct 08 09:11:59 PDT 2025

Total time taken to generate the page: 0.00503 seconds