Author Topic: doubt in programing in c  (Read 1703 times)

0 Members and 1 Guest are viewing this topic.

Offline darksider

  • Member
  • Newbie
  • *
  • Points: 145
  • Posts: 43
  • jst f the world to live free :D

    • MAIT
    • _
      ECE
    • View Profile
doubt in programing in c
« on: January 25, 2012, 07:56:27 pm »
Write a program to evaluate the following algebraic expressions after reading necessary   values from the user
     (ax+b)/(ax-b)
     2.5 log x-cos 30+|x^2-y^2|+sqrt (2xy)
     (x^5+10x^4+8x^3+4x+2
 :neu:  :at wits end  :frus
You do not have permission to give points
point 0 Points

This topic did not receive points.

Offline Shankynayak

  • Member
  • Sr. Member
  • *
  • Points: 224
  • Posts: 469
    • View Profile
doubt in programing in c
« Reply #1 on: January 25, 2012, 08:28:49 pm »
these may be solved here :
http://techbits.co.in/forum/index.php?tid=460&title=c_programs_needed
http://techbits.co.in/forum/index.php?tid=2767&title=Take_2nd_sem_%27C%27_project_programs...

btw its simple..
E.g. If u r multiplying x with y then u use expression & store the result in another var as
z=x*y;
take input of vars from user, solve the expression & display the output.

Confirm the keyword used for trigonometric functions.. i think they r same
:angel:

Offline Shankynayak

  • Member
  • Sr. Member
  • *
  • Points: 224
  • Posts: 469
    • View Profile
doubt in programing in c
« Reply #2 on: January 25, 2012, 08:55:45 pm »
Use math.h header file
1.
(a*x+b)/(a*x-b)
2.
2.5 * log(x) - cos (30) + abs( pow(x,2) - pow(y,2) ) + sqrt(2*x*y)
3.
pow(x,5)+10*pow(x,4)+8*pow(x,3)+4*x+2
:angel:

 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49