Maths Querry


Results 1 to 8 of 8

Thread: Maths Querry

Threaded View

  1. #4
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    The problem im having is i need to use inverse sin ( sin-1) for the following equation:
    Inverse sin is not possible with PBP but inverse tan yes (I am sure to have seen an example (ATN2) given by Darell sometime ago).

    In this case you can just manipulate a bit your equation to obtain the tangent, since:

    SIN = PERP./HYP. (where: (v-v0) = PERP. and (v1-v0) = HYP.)

    TAN= PERP./BASE (where: (v-v0) = PERP. and SQR((v1-v0)^2 - (v-v0) ^2) = BASE)

    so:

    ATN2 ((v-v0)/SQR((v1-v0)^2 - (v-v0) ^2))

    should give you your angle (I don't remember if in degrees or in radiants)

    Edited: See also this link:http://www.picbasic.co.uk/forum/show...ighlight=angle

    Al.
    Last edited by aratti; - 10th March 2010 at 05:17.
    All progress began with an idea

Similar Threads

  1. Simple Maths Going Wrong
    By Bill Legge in forum mel PIC BASIC Pro
    Replies: 43
    Last Post: - 27th May 2010, 09:01
  2. ADCIN > HPWM but with min/max limits - i failed maths
    By jamie_s in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 29th November 2009, 02:02
  3. Maths - Summing small numbers with decimals
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 22nd March 2008, 19:21
  4. dec number to show on lcd (maths)
    By savnik in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 28th August 2007, 19:18
  5. Averaging & 16 maths
    By paul.mcallister in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 22nd May 2005, 18:17

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts