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?)
Type: Posts; User: Livnat
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?)
Hello,
We try to generate a random number between 0 and 1.
Does anyone know how?
Thanks!
That really cleared things up!
Is this function
void sum_and_product(int *pa, *int pb)
{
int sum = *pa + *pb;
int diff = *pa - *pb;
*pa = sum;
*pb = diff;
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;
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++)...
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");...
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:
...
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.
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...
Thanks tabstop! That was the problem...
no more topics about this one... :)
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...
I printed the standard deviation in the main function
printf ("the Standard deviation is: %f\n" ,std_b( c , k, l));
It already worked before i accidentally deleted something and I...
thanks, the loop was there in mistake...
it still doesn't solve the problem
i already divided by i*j when i calculated avg2...
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...
Thanks that helped!
The Standard deviation is still not 1... I'll continue working on it later
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...
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...
Thank you
I still have a conflict in the function avg_b
rags_to_riches is totally right
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>
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>
Thank you all...
It was all very helpful
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...
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()
{
Yes, eventually I got it myself... same mistake as last time:)
Thanks Elysia for the interesting information about what "&" actually means.
thank you all!