Results 1 to 3 of 3

Thread: [RESOLVED] [2005] Simple Equation that returns error

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2005
    Posts
    449

    Resolved [RESOLVED] [2005] Simple Equation that returns error

    Hi,
    The eqn below is returning error with K =-1.#IND


    k = arc cosine(-(g/2i)
    which I coded as

    Code:
       
    k = Acos(-(g / 2 * i))
    where
    g=4.0740740740740744
    i=8.3356375415197839
    Will appreciate any responses...

  2. #2
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: [2005] Simple Equation that returns error

    acos (according to docs) only accepts Cosine as a value.
    so it needs a value passed to it in the range of -1 to 1.
    your number you are passing it is much smaller than -1.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2005
    Posts
    449

    Re: [2005] Simple Equation that returns error

    Hi Orwell,
    Thanks for your inputs;

Posting Permissions

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



Click Here to Expand Forum to Full Width