Re: Number of decimals

"floobydoo2000" <[email protected]>
Newsgroups gmane.comp.windows.gui4cli
Message-ID <[email protected]>
I've investigated this.  6 decimals is it if you use the built in math routines.  You can use a windows version of a unix utility called bc  (I think that stands for binary calculator).  This is a command line utility and allows for arbitrary precision.  This seems perfect for you.  One thing to watch out for is when taking a number to a non integer power isn't allowed, eg 2^.333 gives an answer of 1. You get around this by using logarithms. i.e. e^{(ln x)/2} is square root of x. e is Euler's constant 2.718281828.  In bc it looks like: e(0.5*l(x)).
The square root of 25 this way yields 4.99999999999....  Just ask for more precision than you need and round off.  You can set this up in a script file that you can load into bc each time you call it so that in your Gui4cli script to do x^y you would do something like pow(x,y), where pow is a function you've set up in a script that you have bc load.

Mike

--- In [email protected], "Marianne" <marianne976@...> wrote:
>
> Dear Dimitris
> 
> Hope is is going well. Just one question.
> 
> I am working a lot with statistics and use Gui4Cli for the purpose. I do have one problem and hope you can give me advice.
> 
> Gui4cli only gives a value to 6 decimals. For example 2/3 = 0.666667
> Is there a trick that I can get more decimals, in the region of 10 to 16?
> 
> In probabilities this is very important. In one specific situation there is a differenc of 0.10 if  I work on 6 or 7 decimals. In the one case it gives me a probability of 0.15 instead of 0.25.
> 
> Thank you ever so much for all the help.
> 
> Kind regards.
> 
> Frans.
>




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/gui4cli/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/gui4cli/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.