Search:

Type: Posts; User: Livnat

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Thread: rand()

    by Livnat
    Replies
    11
    Views
    2,551

    Thanks Dino, but it doesn't specify how to make...

    Thanks Dino, but it doesn't specify how to make the number in the range 0 to 1.

    Matsp, If anyone knows how to generate a random number between 0 and 1 please help us (is this an English forum?)
  2. Thread: rand()

    by Livnat
    Replies
    11
    Views
    2,551

    rand()

    Hello,

    We try to generate a random number between 0 and 1.
    Does anyone know how?

    Thanks!
  3. Replies
    6
    Views
    1,191

    Thanks!

    That really cleared things up!
  4. Replies
    6
    Views
    1,191

    Question about Pointers

    Is this function


    void sum_and_product(int *pa, *int pb)
    {
    int sum = *pa + *pb;
    int diff = *pa - *pb;

    *pa = sum;
    *pb = diff;
  5. Thread: fatal error

    by Livnat
    Replies
    15
    Views
    3,957

    it's working :)!!

    thanks for the help

    enjoy:


    int m,n,maxrow;
    double max[30], maxi=0,temp2;
    double* temp;
    for(m=order;m<i;m++)
    max[m]=0;
  6. Thread: fatal error

    by Livnat
    Replies
    15
    Views
    3,957

    we got it :)

    this is the fixed loop:



    void diagonal(double* P[30],double B[30],int m,int order)//diagonal b!!
    {
    int j,k;
    for (k=1;k<m-order;k++)
    for (j=0;j<m;j++)...
  7. Thread: fatal error

    by Livnat
    Replies
    15
    Views
    3,957

    thank you Vart. we did some adjestmants, here is...

    thank you Vart.
    we did some adjestmants, here is the new loop...



    void diagonal(double* P[30], double B[30], int m,int n,int order)//diagonal b!!
    {
    int j,k;
    printf("im alive\n");...
  8. Thread: fatal error

    by Livnat
    Replies
    15
    Views
    3,957

    I t looks pretty much the same. We changed the...

    I t looks pretty much the same. We changed the O's and the 0's to P's. Maybe we should change all the names to something more meaningful like you suggested . In the meantime, here's the code:



    ...
  9. Thread: fatal error

    by Livnat
    Replies
    15
    Views
    3,957

    hi, I'm doing this work with Miri. We fixed the...

    hi,
    I'm doing this work with Miri.
    We fixed the 0-O mistake. It makes the run time error come a bit later...
    Anybody can figure out why it won't work?

    Thank you.
  10. Replies
    11
    Views
    1,682

    Hello Salem, I just saw you gave me a new way to...

    Hello Salem,
    I just saw you gave me a new way to debug in the previous topic about this non ending assignment... You're right it's smarter to have all the different problems in the same topic.
    I...
  11. Replies
    11
    Views
    1,682

    Thanks tabstop! That was the problem... no more...

    Thanks tabstop! That was the problem...
    no more topics about this one... :)
  12. Replies
    11
    Views
    1,682

    why do I need to divide it twice? var =...

    why do I need to divide it twice?
    var = <x^2>-<x>^2
    std=sqrt(var)
    <x^2> is avg2...

    anyways that's not the problem. I have something wrong going on with the programming it doesn't even print a...
  13. Replies
    11
    Views
    1,682

    I printed the standard deviation in the main...

    I printed the standard deviation in the main function



    printf ("the Standard deviation is: &#37;f\n" ,std_b( c , k, l));



    It already worked before i accidentally deleted something and I...
  14. Replies
    11
    Views
    1,682

    thanks, the loop was there in mistake... it...

    thanks, the loop was there in mistake...
    it still doesn't solve the problem
    i already divided by i*j when i calculated avg2...
  15. Replies
    11
    Views
    1,682

    Problem in output of a function

    Hi,
    I try to make this code that normalizes an array.when I try to print the standard deviation it comes out like this -1.#ID... and so on...
    If somebody finds the reason for it I'll appreciate...
  16. Thanks that helped! The Standard deviation is...

    Thanks that helped!
    The Standard deviation is still not 1... I'll continue working on it later
  17. Thanks Salem for the advise. I printed the first...

    Thanks Salem for the advise. I printed the first sum and its zero no matter what array I input.
    I don't understand why...

    Hi zacs7 I'm bit afraid of pointers in this point so I prefer doing it...
  18. Help with a function that suppose to normalize an array

    Hello,
    This function suppose to make the mean value zero and the Standard deviation 1,
    Only it makes them both zero.
    Somebody has an idea why?
    Thanks!




    void norm_b(double b[30][30] , int...
  19. Replies
    8
    Views
    2,185

    Thank you I still have a conflict in the...

    Thank you
    I still have a conflict in the function avg_b
    rags_to_riches is totally right
  20. Replies
    8
    Views
    2,185

    Conflicting functions - Help.

    hello all,
    I need help with this code,
    the compiler says it has conflicting types of functions (scan_b for example)...
    thanks again,
    Livnat.



    #include <stdio.h>
    #include <math.h>
  21. help! i need somebody help! not just any...help!!!

    hello all,
    I need help with this code,
    the compiler says it has conflicting types of functions (scan_b for example)...
    thanks again,
    Livnat.



    #include <stdio.h>
    #include <math.h>
  22. Replies
    12
    Views
    2,563

    Thank you all... It was all very helpful

    Thank you all...
    It was all very helpful
  23. Replies
    12
    Views
    2,563

    hmmmmm well thanks for trying to help, I guess. I...

    hmmmmm well thanks for trying to help, I guess. I thought that was one of the purposes of the forum. And that people just enjoy helping unpaid students with their questions in C Because they like...
  24. Replies
    12
    Views
    2,563

    Hi, I need help with this code.

    This code suppose to check if in every row and column every number appears only once.
    It only succeeds sometimes....
    Thanks...



    #include <stdio.h>
    #define NUM 3
    int main()
    {
  25. Replies
    4
    Views
    1,719

    Yes, eventually I got it myself... same mistake...

    Yes, eventually I got it myself... same mistake as last time:)
    Thanks Elysia for the interesting information about what "&" actually means.

    thank you all!
Results 1 to 25 of 29
Page 1 of 2 1 2