Skip to main content
Commonmark migration
Source Link

You should develop C application, that solves math expressions. Operations such as (+,-,*,/) should be supported, as well as (cos, sin, exp). Application should replace constants Pi and E with built-in values. We may have any amount of spaces between operators and braces.

 

Example:

 

stdin: 11 + (exp(2.010635 + sin(PI/2)*3) + 50) / 2

 

stdout: 111.00000 (may have insignificant deviations)

You should develop C application, that solves math expressions. Operations such as (+,-,*,/) should be supported, as well as (cos, sin, exp). Application should replace constants Pi and E with built-in values. We may have any amount of spaces between operators and braces.

 

Example:

 

stdin: 11 + (exp(2.010635 + sin(PI/2)*3) + 50) / 2

 

stdout: 111.00000 (may have insignificant deviations)

You should develop C application, that solves math expressions. Operations such as (+,-,*,/) should be supported, as well as (cos, sin, exp). Application should replace constants Pi and E with built-in values. We may have any amount of spaces between operators and braces.

Example:

stdin: 11 + (exp(2.010635 + sin(PI/2)*3) + 50) / 2

stdout: 111.00000 (may have insignificant deviations)

added 2 characters in body; edited tags
Source Link
Jamal
  • 35.2k
  • 13
  • 134
  • 238

Recently I've recently stumbled upon an interesting challenge for me.:

My code is also on pastebin: http://pastebin.com/ijSyh4CK.

Can you help me make my code style better?

Can you help me make my code-style better?

Recently I've stumbled upon an interesting challenge for me.

My code is also on pastebin: http://pastebin.com/ijSyh4CK

Can you help me make my code-style better?

I've recently stumbled upon an interesting challenge for me:

My code is also on pastebin.

Can you help me make my code style better?

edited tags
Link
200_success
  • 145.7k
  • 22
  • 191
  • 481
Fix title, remove greetings/thanks, and add recursion tag
Source Link
rolfl
  • 98.1k
  • 17
  • 220
  • 419
Loading
added 7712 characters in body; edited title
Source Link
Loading
Source Link
Loading