Search:

Type: Posts; User: hei

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    1,549

    Problems about this eval() function

    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...
  2. Replies
    9
    Views
    2,215

    Thank you very much Gliptic, your code is very...

    Thank you very much Gliptic,
    your code is very useful,
    i can understand more about c program now.
  3. Replies
    3
    Views
    1,593

    thanks, Nick. I try your code already, but I...

    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
  4. Replies
    3
    Views
    1,593

    series converges to 2

    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)
  5. Replies
    9
    Views
    2,215

    Do i need to use array in my program? and how...

    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.
  6. Replies
    9
    Views
    2,215

    How ?

    I want to ask how to work out the precedence of each token,
    it seems difficult to me.^^
  7. Replies
    9
    Views
    2,215

    Expression Evaluator

    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...
  8. Replies
    3
    Views
    1,609

    thanks

    Ok,it's fine.

    thank you very much.^^
  9. Replies
    3
    Views
    1,609

    area estimation of graph

    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...
  10. Thread: about srand()

    by hei
    Replies
    3
    Views
    1,141

    Ok, it's fine. Thank you. ^^

    Ok, it's fine.
    Thank you. ^^
  11. Thread: about srand()

    by hei
    Replies
    3
    Views
    1,141

    about srand()

    Hello,

    Anyone can help me how to use srand() in generate random
    number ? And how exactly do?
  12. Thread: exponential

    by hei
    Replies
    2
    Views
    1,590

    exponential

    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...
Results 1 to 12 of 14