Search:

Type: Posts; User: adinclik

Search: Search took 0.00 seconds.

  1. Replies
    9
    Views
    41,901

    OK. the equation I proposed was a put-together of...

    OK. the equation I proposed was a put-together of two seperate functions. What I have to do is integrate the left side and the right side seperately... then make them equal to each other.
    ...
  2. Replies
    9
    Views
    41,901

    How do i integrate an equation in C?

    I need to write a program in C to integrate the following simple equation:

    dy/y= x dx

    and I have no clue whatsoever on how to integrate it... :confused:

    Could somebody please show me the...
  3. Replies
    4
    Views
    1,297

    Uh i see, *but what should i do to confine...

    Uh i see,

    *but what should i do to confine the generated numbers to a range of say [0, 0] to [(Pi/2), 1]?

    *Also, what should i change to produce 1000 random numbers instead of 10?
  4. Replies
    15
    Views
    2,029

    Why doesn't this work??!!

    #include <stdlib.h>
    int min(void){

    int i;

    i= rand();

    printf("%d", i);

    double d = i / RAND_MAX * PI;
  5. Replies
    15
    Views
    2,029

    I've just written a simple program which returns...

    I've just written a simple program which returns 1 random number...

    BUT WHY DOES IT ALWAYS RETURN AROUND 27000!!!???

    is there a trick to fix this?

    also, can you show me how to limit the...
  6. Replies
    4
    Views
    1,297

    Why Doesn't This Work??!!

    thanks to Michael Ashley...


    // An example showing how to generate random floating
    // point numbers between 0 and 1.

    // Michael Ashley / UNSW / 02-Apr-2003

    #include <sys/time.h>...
  7. Replies
    15
    Views
    2,029

    Can u please give me a simple example because i...

    Can u please give me a simple example because i dunno how to use rand() or double...
  8. Replies
    15
    Views
    2,029

    random number generator

    OK
    i found a random number generator program and it goes like this



    #include <stdio.h>
    #include <assert.h>

    #define MAXBIT 30
  9. Replies
    15
    Views
    2,029

    i'm noob in c prog. so all i can do is find...

    i'm noob in c prog.

    so all i can do is find sin(x) for different values of x. you know, the basic printf and scanf thingy..

    i can probably integrate sin(x), but i cant possibly find the...
  10. Replies
    15
    Views
    2,029

    need easy help ASAP

    Hi I'm Ali,

    My problem is as follows:

    *i need to write a program to calculate the INTEGRAL of sin(x), from x=0 to x=pi/2.

    *Also, i need to produce 1000 random numbers within 0 and pi/2.
    ...
Results 1 to 10 of 10