Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to have a value of the tangent with decimal point?

Status
Not open for further replies.

vincentspm

Newbie level 6
Joined
Jun 14, 2007
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,364
tangent=(SinE3(angle)/CosE3(angle);

by using this code, how to have an value of the tangent with decimal point?what should i declare for tangent?
i need to have this value then send to LCD, i'm using PIC16F877A
 

trigonometry

I think you will have to make your question a little clearer. Are you asking what function to use to evaluate this equation? If so, you will have to either write cos and sin functions yourself, or perhaps you can find a math library to do it for you.
 

trigonometry

i think PCW compiler have gud math lib having all trignometery functions
 

Re: trigonometry

tangent initliaze as Float
or
the
use the conversion spcaifer of %f when u takeing the numeric value of tangent.other is whatever...
int cos
int sin
float tang
and
so on

Added after 11 minutes:

this will help better i think see precise the topics
https://ww1.microchip.com/downloads/en/AppNotes/01061A.pdf
 

Re: trigonometry

tangent will be a float. Most of the std C match libraries already include the trig. functions. Using the %f modifier will help when sending data to the LCD.

Cheers
Slayer
 

Re: trigonometry

thanks for helping, i will go and try it
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top