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

Home » Public Forums » archive » Re: Inaccuracies
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: Inaccuracies [message #5303 is a reply to message #5294] Tue, 14 November 1995 00:00 Go to previous messageGo to previous message
hahn is currently offline  hahn
Messages: 108
Registered: November 1993
Senior Member
Andy Loughe <afl@cdc.noaa.gov> wrote:

> Ok, I am sure this has been discussed before, but let
> me start this thread again. I wish to create a 15-element
> vector which contains the numbers -1.4 to 1.4 by an increment
> of 0.2 I also wish the sum of these elements to be zero
> (No, this isn't the new math). Here is what I tried...

[remainder deleted]

All you must do is to avoid decimal fraction because our computers
use binary fractions and truncate the number. Thus you may either
multiply each number by a factor large enough to get an integral
number and divide when you print/plot the results or you treat 0.2
as 1/5 and work on that. I guess this is what packages such as
Mathematica or Maple do.

Norbert Hahn
[Message index]
 
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: How can I add parameter to curvefit?
Next Topic: XLoadCT in a procedure ?????

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

Current Time: Fri Oct 10 23:12:48 PDT 2025

Total time taken to generate the page: 0.40233 seconds