Hi!

JAL can only handle integer numbers. I would suggest that you use a 
lookup-table customized to the resolution and amplitude you need. There is some 
sine function somewhere... I once needed a sine for tone generation, but the 
provided sine function was unnecessarily precise and therefore way to slow, so 
I had to write my own table.

Greets,
Kiste


--- YoBe <[email protected]> schrieb am Di, 22.11.2011:

> Von: YoBe <[email protected]>
> Betreff: [jallib] Use Cosine, Sine & Tangent in JAL
> An: "jallib" <[email protected]>
> Datum: Dienstag, 22. November, 2011 17:48 Uhr
> Hi all,
> 
> I am quite new with JAL, but rather familiar with
> programming (have
> uses often mikrobasic in Demo).
> The open-source Jal looks realy interesting and I tried
> allready some
> stuff (R232, PWM, ...).
> Works perfect!!! Thanks.
> But for the project I need some math in the pic: cosine,
> sine &
> tangent. I tried to find this in the lib "math" but could
> not see it.
> Did I mis something or is there no lib availlable for JAL
> that can
> handle cosine, sine & tangent.
> 
> Thanks for your support!!!
> 
> YoBe
> 
> -- 
> You received this message because you are subscribed to the
> Google Groups "jallib" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/jallib?hl=en.
> 
> 

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to