epix-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ePiX-users] Math functions


From: José Alexandre Nalon
Subject: Re: [ePiX-users] Math functions
Date: Fri, 18 Apr 2008 11:10:29 -0300
User-agent: KMail/1.9.7

Hello,

On Friday 18 April 2008 10:58:09 Gunnar Lindholm wrote:
> > p = Exp(b*Log(a));
> >
> > with no luck. Since all I needed was 2nd and 4th powers, I
> > used multiplications, and the figure was drawn ok. But this
> > is so ugly that at this moment I can't look myself at the
> > mirror :) I was wondering what would be the correct way to
> > do it?
>
> I don't knwo about the "correct" way, but  could it be that you calculate
> logarithm of zero or negative number?

That would explain a lot, and I was alread bitten by this a
number of times. So I tried

p = exp(b*log(abs(a)));

with the same results. Didn't try using Abs(), though. Is
there a quick reference of the available functions in ePiX?

-- 
José Alexandre Nalon
address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]