Wrong values with COSINE!


Closed Thread
Results 1 to 25 of 25

Hybrid View

  1. #1
    Eng4444's Avatar
    Eng4444 Guest


    Did you find this post helpful? Yes | No

    Thumbs up Hey people.... thanks for your replies!:)

    Some of you are good ones and others are.... really bad! especially the one of lights and bulbs! haha.

    Dear Sirs,

    my question was simple and clear. You do not have to worry about what i am doing and why i did not use a table! you really have smart ideas there! but i just needed to see if there is one single HEAD of you able to solve this matter...

    i have 3 possibilities other than using TABLES.. but i still only have to solve this matter which is:
    i need to use the provided "cosine" question in the PicBasic Pro tutorial in order to get the usual answers... like cos 0 = 1 and cos 90 = 0 etc etc

    so just in case someone has a method, please say it and give the method otherwise, if it is only for dummie answers and stupidities, i have enough of IMPORTANT things to deal with and not obliged deal with bulbs and lights or anything else....

    By the way Mr Bulb, as long as I DUNNO WITH WHOM I AM TALKING.... why don't you show me what do you have INSIDE your brain? and not just what you USED to do in the past?

    maybe still dealing with bulbs till now?..........

    Come on people! the world has changed! lol

  2. #2
    Eng4444's Avatar
    Eng4444 Guest


    Did you find this post helpful? Yes | No

    Default One more thing...

    thanks for:

    http://www.emesystems.com/BS2math3.htm#arcCos

    but in my application, i am not using x or y...

    i am just getting a phase shift from a Phase Locked-Loop, transforming this number to degree and then, i need the cosine of this number...

    All the problem is that "cosine" was made to give an answer in two's complement... and this is bad...... i need the normal answers...

  3. #3
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Hi,

    From the link:
    http://www.emesystems.com/BS2math3.htm#arcCos

    Here is a simple demo program that illustrates the use of the SIN and COS on the BASIC Stamp. It steps through all the angles from 0 to 360. The angle is printed in degrees and the cosine and sine of the angle are printed as decimal numbers in the range of -1.00 to +1.00.

    Luciano

  4. #4
    Eng4444's Avatar
    Eng4444 Guest


    Did you find this post helpful? Yes | No

    Exclamation OKay

    Thanks agains Luciano,

    but i really do not need them in this way... i don't mean to be rude or not caring but i really really do not need them like this..

Similar Threads

  1. WRITECODE stores wrong 14-bit word values in FlashMEM
    By BobPigford in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 26th June 2009, 05:35
  2. Looking at pic basic pro symbol values in mplab 8.15a simulator
    By ukemigrant in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 16th May 2009, 14:18
  3. Need help calculating OSC cap values
    By Kamikaze47 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 26th June 2008, 22:27
  4. Funny PULSIN values: what is going on???
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 30th April 2008, 09:02
  5. 16F877A problem: "coupled" digital values
    By Lupo83 in forum General
    Replies: 16
    Last Post: - 4th December 2007, 13:46

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