Oh, all right.
Well, everything works now. Seriously, thanks a lot for your patience.
Type: Posts; User: sqytoad
Oh, all right.
Well, everything works now. Seriously, thanks a lot for your patience.
Yeah, it did. (Assuming you meant the same sequence of 5 different numbers, twice.)
Why do you have the L after 123?
Because that makes sense to me...I wasn't really doing much different.
I'm sorry, I have been really confusing.
I've been messing with one of their sample programs, and it basically goes through like this.
T = gsl_rng_taus2;
r = gsl_rng_alloc (T);
printf ("%e\n",...
Right, but I guess I don't know how to make the result actually depend on s...
Hey, so actually it seems you can use this function, as well, to change the seed:
void gsl_rng_set (const gsl_rng * r, unsigned long int s).
From this page...
Thank you SO much.
All right, thanks.
Do I need to figure out how to run/compile completely from the command-prompt window, or is there a way to change them and still run it like I'm used to?
(And how do you do it...
Oh, that actually explains some of my confusion from reading about this stuff... :S
I'm using dev-C++.
Oh, sorry, tabstop, my bad. lol I'm not 100% sure it's not a box for the compiler, but I'm definitely not using the one in compiler options. I'll look and see again if there's another box...
Yeah, that's where I've been looking, but I wasn't sure exactly how to change them...
I guess I can't tell for sure. I've gotten pretty confused because I've been trying to figure everything out at once. I think I was assuming for running the program...
This is where I was looking...
Hi, I'm trying to use gsl to provide random numbers for my program. I can get the basic defaults to work, but I was trying to get this part:
"By setting the two variables on the command line we can...
I was trying something along these lines...
It would maybe do the first number correctly, but then I'm not sure what it was doing. I really didn't get that far.
(This is simplified, delta is...
Well, if you could tell me a better way to update the scan to that value, I'd be fine with that. But I'm doing this with a huge list, so it's not like I can just type it in each time like in my...
Hi, I'm wondering if someone can help get me started on this. I sat down to do it and realized I couldn't. lol
This is what I'm trying to do:
I have an output file that I want to append. The...
Are you still having a problem? Because it should work if you took out those two semicolons.
Is something else wrong?
Yeah, I was just using it as a placeholder for while I was working on it. I think I misunderstood what you were saying at first, so I wanted to really make sure I got what you were saying now that I...
if ( number == 1 || 3 || 5 )***;***{
printf("i dont like odd numbers\n");
}
else if ( number == 2 )***;*** {
You shouldn't have the semicolons that I put *** around above. You just...
The problem is I'm still a little confused about how to use what you're saying.
So instead of having my condition be a[i]/a[i-1] I would have a[i]/previous_value?
What I'm saying is that if a value doesn't meet the condition, I want to ignore it - completely. So that it's not used in the next cycle of the loop.
Let me try and go through this better.
This is...
C_ntua - sorry, I'm not sure what you mean, could you explain a little more? Why would a while loop be better?
All right, let me talk through this to see if I getting it...still not sure.
-My main condition is if array[i]>array[i-1]-
So should I start out by making previous_value = array[i-1]?
Then go...
Then how do i incorporate it into the loop? I was thinking of something like that, but I couldn't figure out how to define it.
I have a loop going with an array - say array[i] for i=0 to i<10 - with conditions, and if the conditions aren't met at a value in the array, I want to ignore the value. I have array[i-1] in the...
@#$%!! I can't believe I didn't notice that! :( :( I'd been looking for that for so long, that was all I thought it could be...
I guess I'd stared at it so long I'd convinced myself it was fine....