From: Abhijit S. <mu...@gm...> - 2002-06-14 07:51:11
|
You'll have to convert the mathematical expression into a C-style expression. For example: #include <math.h> x = r * cos(theta); y = r * sin(theta); In your program you'll have to use x = 5; y = x * tan(x); Note that y should be a float or double if you want to use it practically. So, y = (float)x * tan(x); Check math.h for more functions. -------------------------- http://mudeth.tripod.com ----- Original Message ----- From: "Nancy Alvarez" <nai...@ho...> To: <dev...@li...> Sent: Friday, June 14, 2002 5:48 AM Subject: [Dev-C++] (no subject) > > > Hi, > > Somebody can say what to do for calculate sin, cossin, tangent. How are > entries.? For example: I have a function x(tan x) If x=5 , Do I write > 5(tan 5) in my routine? > > Thanks > |