True that.
Type: Posts; User: zdream8
True that.
...Yeah, I don't really know what I was thinking when I wrote that. Thanks for the suggestion. I was hoping (but not expecting) this would just be super easy...but I guess it's not too bad, I...
Sorry, could you elaborate a little more?
I haven't actually done something like that before, but it seems like those methods apply mainly when you don't know the function, but you have points...I...
Hmm...I'm not sure if that would work or not. I might be confused.
Let me check and see if you understand what I'm asking (I'll do a better example).
Let's say I'm doing this:
I have a function...
Do you mean more information on the function? I don't really think a specific discussion of the function would help, because I definitely understand the math concepts, it's just that it would be...
C_ntua - Well, I meant that what I WANT to do is something like function(x,2)=2, solve for x - but I know you can't do that. It looks like what you have is what I want to do, but I don't know if...
Hello,
I was wondering if there is a simple way to do this. This is just an example, but I have a function defined as x*y.
So obviously if I provide values for x and y, it can tell me the...
Ack, I was thinking the comma was the problem, but then....oh...so the last on works just because of the i>=20. I get it now... :S
Thanks.
I've gotten really confused about this... Below is a simple program I was messing with trying to fix my problem. ...Which I guess is in the if statements. The first "if" is fine...it prints out...
Thanks for your help, everyone, I finally got my whole program to work.
Sorry that was so vague, but I was really confused and there were a few problems. :S But anyway, thanks again. I'll probably...
That's definitely what's confusing me.
This is the sample program they give
#include <stdio.h>
#include <gsl/gsl_sf_bessel.h>
int
main (void)
{
Well I feel like this is a pretty simple problem someone should be able to tell me pretty quickly. I think I'm just bad at phrasing the question, since I'm confused. Same with looking things up -...
All right, I don't really know what I'm doing, but this is what I have.
#include <stdio.h>
#include <gsl\gsl_rng.h>
main ()
{
double gsl_rng_uniform (const gsl_rng * r);
...
I'm trying to figure out gsl - I've just downloaded it.
I'm really confused about how to actually use the functions. I've definitely got everything worked out so I can pull them into my program,...
I've just installed GSL, and I was reading the introduction and about including the appropriate directory for certain tasks (ie #include<gsl/gsl_sf_bessel.h>) it says
"If the directory is not...
Adak - thanks. It worked with "lf". I tried that earlier, but must have been doing something else wrong, because it didn't work. That's when I got completely lost. lol
Thanks everyone for your...
All right, I was thinking something like that might be going on... Do you know where I can find a place that tells the proper formats for all the variables? I was trying to find info about that...
Adak - I tried "rb" instead of "r" and the same thing still happened... (still the same ridiculous numbers)
For fscanf should I still be using %e to read it in? Because I tried some other things...
The one loop uses x because it's about the value of mel(x,y) at each x, which isn't necessarily and integer (though here it is). Is there a better way to do that?
(I'm just on windows.)
And...
All right, this is the whole program I'm trying to run, just in case, but I'll explain at the end...
#include <stdio.h>
#include <math.h>
double mel( double x, double y)
{
double answer,...
I guess that's what was confusing me, because i goes from 0 to 9, j goes from 0 to1. I tried to do it with something similar and it was spitting out way too many of "j's" I think. I don't remember...
My x is actually a double, not an integer, so it can't be an index in the array. I've been putting an integer i in the loop, which increases by one each time, for the index, but it's a little more...
Oh, awesome! Thanks, I just needed to put the .0 in...should have tried that. I'm new at this... :P
Just a question about entering fractions...
I have a function set up to do a simple calculation. If I code in a whole number to be multiplied by one of the variables, it gives the right answer but...
All right, so continuing with what I was doing I would have
array_todd[i][j]; instead...and I want the x's to be in the first column, with the function values in the second.
So I want to say as x...