Trig object Spin/Pasm

I am looking for an object written in Spin or Pasm to perform trig functions. I would like something which interfaces like this:
var := Trig.sin(12)
var2 := Trig.cos(34)
I need sine, cosine, tangent, and the inverses.
Sarcasm for English build 2019.12.30 released two days before New Year's! Ports to other languages are in progress and are expected to be finished by January 5, 2020.

Comments

  • I am looking for an object written in Spin or Pasm to perform trig functions. I would like something which interfaces like this:
    var := Trig.sin(12)
    var2 := Trig.cos(34)
    
    I need sine, cosine, tangent, and the inverses.

    What about this one from the Object Exchange: http://obex.parallax.com/object/609

    You didn't say if you needed floating point or just integer results, the object above returns integer results.

    There is also this one, that does fixed point math: http://obex.parallax.com/object/232

    Along with 'Antimatter' and 'Dark Matter' we've recently discovered the existence of
    `Doesn't Matter`, which appears to have no effect on the universe whatsoever.
  • Preferred decimals, but integers would work in many situations. I think that a lot of motor drivers would use integer.
    Sarcasm for English build 2019.12.30 released two days before New Year's! Ports to other languages are in progress and are expected to be finished by January 5, 2020.
Sign In or Register to comment.