can 89s52 perform trignometric function?

Status
Not open for further replies.

waqas ikhtiar

Newbie level 6
Joined
Aug 13, 2011
Messages
11
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,283
Activity points
1,348
hi friends
i want to know that is keil compiler can perform inverse of cosine or sin...... i am using 89s52, if yes then nplease tell me how?
thanks
 

Implementing a lookup table would most likely be the most efficient method.

BigDog
 
Reactions: FvM

    FvM

    Points: 2
    Helpful Answer Positive Rating
If high accuracy is an objective, you should code your own library function using power series, see List of mathematical series - Wikipedia, the free encyclopedia

Here's the example for inverted sine (arcsin)



Although the expression looks complicated at first sight, it reduces to a rather handy recursive form.
 
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…