This function is to calculate expression and output results.
for example, input 3+5 will output 8.0000
and input 3^2 will output 9.0000
I cannot understand it very well on some coding,
my...
Type: Posts; User: hei
This function is to calculate expression and output results.
for example, input 3+5 will output 8.0000
and input 3^2 will output 9.0000
I cannot understand it very well on some coding,
my...
Thank you very much Gliptic,
your code is very useful,
i can understand more about c program now.
thanks, Nick.
I try your code already, but I also cannot get the correct answer.
My code is
#include <stdio.h>
#include <math.h>
#define X 0.000001
I use a while loop to find the following series converges to 2.
1- 1/3 + 1/5 -1/7 + ...
My Code is :
#include <stdio.h>
#include <math.h>
void main(void)
Do i need to use array in my program?
and how to extract the numbers?
for example, 3+5-(-1)
how to extract "+" and "-1" ??
thanks.
I want to ask how to work out the precedence of each token,
it seems difficult to me.^^
I want to write a calculator that reads an expression from user input computes the expression and display the result correct to 3 decimal points. The expression is evaluated from left to right.
I...
Ok,it's fine.
thank you very much.^^
hihi,everyone.
As I'm just a beginner of C program, please help ^^.
I use the following program to estimate the area of
y=sqr(cos(x)p2+1)
sqr= square root,
p2 = power 2,
from x=0 to x=2.
I...
Ok, it's fine.
Thank you. ^^
Hello,
Anyone can help me how to use srand() in generate random
number ? And how exactly do?
Prepare a program that reads two integers x and n,
and calculate exp using the following formula:
exp = 1+ x/1 +x2/2! +x3/3! + ...
x2,x3 means x power 2, x power 3.
The integer...