Search:

Type: Posts; User: Samyx

Search: Search took 0.00 seconds.

  1. Thread: Unix errors

    by Samyx
    Replies
    8
    Views
    1,501

    I got it!

    I got it!
  2. Replies
    13
    Views
    1,415

    Voce eh brasileira?

    Voce eh brasileira?
  3. Replies
    9
    Views
    6,511

    i believe just the first part will do, since he...

    i believe just the first part will do, since he is not doing a loop or anything.
  4. Thread: Unix errors

    by Samyx
    Replies
    8
    Views
    1,501

    Now when I run the program I have this: ...

    Now when I run the program I have this:

    ...
    ERROR in uniform.discrete_uniform(): a=100 b=99
    ERROR in uniform.discrete_uniform(): a=100 b=99
    ERROR in...
  5. Thread: Unix errors

    by Samyx
    Replies
    8
    Views
    1,501

    Can I say main returns 0?

    Can I say main returns 0?
  6. Thread: Unix errors

    by Samyx
    Replies
    8
    Views
    1,501

    Thank everyone! I fixed the problems you guys...

    Thank everyone! I fixed the problems you guys pointed out, now this is the warning:

    [113] $ gcc -Wall -Wextra -o ex3 ex3.c ex3test.c uniform.c -lm
    ex3test.c: In function `main':
    ex3test.c:86:...
  7. Thread: Unix errors

    by Samyx
    Replies
    8
    Views
    1,501

    Unix errors

    Hi Everyone,

    I trying to use the file ex3test.c to test the following program(ex3.c):


    #include <stdio.h>
    #include <stdlib.h>

    /* Step 1: define your struct here */
    typedef struct _Node {
  8. Replies
    10
    Views
    1,568

    how did u guys come up with those percentages?

    how did u guys come up with those percentages?
  9. Replies
    10
    Views
    1,568

    The user would entry those values, but you can...

    The user would entry those values, but you can use K=10 and M=3
  10. Replies
    10
    Views
    1,568

    No wrap around in this one

    No wrap around in this one
  11. Replies
    10
    Views
    1,568

    I thought about it this way: double...

    I thought about it this way:




    double consecutiveOnesProbability (int K, int M, int numTrials)
    {
    int randomarray[];

    for (int a=0; a<=K; a++){ /* initialize an array...
  12. Replies
    10
    Views
    1,568

    anyone?

    anyone?
  13. Replies
    10
    Views
    1,568

    Consecutive one's problem

    Hey everyone, I am having some difficult trying to calculate the probability of a sequence of consecutive ones being generated in an array when the position is chosen randomly.

    For example: I want...
Results 1 to 13 of 13