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.
Windows 10 Home:
Propeller Tool 1.3.2, BASIC Stamp Editor 2.5.4, Javelin Stamp IDE x.x.x, Arduino IDE, PST
Hardware:
BASIC Stamp Board of Education, Propeller Board of Education, Propeller Project Board, Propeller Mini

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.
    Windows 10 Home:
    Propeller Tool 1.3.2, BASIC Stamp Editor 2.5.4, Javelin Stamp IDE x.x.x, Arduino IDE, PST
    Hardware:
    BASIC Stamp Board of Education, Propeller Board of Education, Propeller Project Board, Propeller Mini
Sign In or Register to comment.