Search:

Type: Posts; User: zdream8

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Thread: functions...

    by zdream8
    Replies
    17
    Views
    2,301

    True that.

    True that.
  2. Thread: functions...

    by zdream8
    Replies
    17
    Views
    2,301

    ...Yeah, I don't really know what I was thinking...

    ...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...
  3. Thread: functions...

    by zdream8
    Replies
    17
    Views
    2,301

    Sorry, could you elaborate a little more? 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...
  4. Thread: functions...

    by zdream8
    Replies
    17
    Views
    2,301

    Hmm...I'm not sure if that would work or not. 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...
  5. Thread: functions...

    by zdream8
    Replies
    17
    Views
    2,301

    Do you mean more information on the function? I...

    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...
  6. Thread: functions...

    by zdream8
    Replies
    17
    Views
    2,301

    C_ntua - Well, I meant that what I WANT to do is...

    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...
  7. Thread: functions...

    by zdream8
    Replies
    17
    Views
    2,301

    functions...

    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...
  8. Ack, I was thinking the comma was the problem,...

    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.
  9. I think I need some notation explained :( (if statements)

    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...
  10. Replies
    11
    Views
    4,256

    Thanks for your help, everyone, I finally got my...

    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...
  11. Replies
    11
    Views
    4,256

    That's definitely what's confusing me. This is...

    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)
    {
  12. Replies
    11
    Views
    4,256

    Well I feel like this is a pretty simple problem...

    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 -...
  13. Replies
    11
    Views
    4,256

    All right, I don't really know what I'm doing,...

    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);
    ...
  14. Replies
    11
    Views
    4,256

    Gnu Scientific Library functions

    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,...
  15. Replies
    2
    Views
    1,393

    using Gnu Scientific Library

    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...
  16. Replies
    13
    Views
    1,763

    Adak - thanks. It worked with "lf". I tried...

    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...
  17. Replies
    13
    Views
    1,763

    All right, I was thinking something like that...

    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...
  18. Replies
    13
    Views
    1,763

    Adak - I tried "rb" instead of "r" and the same...

    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...
  19. Replies
    13
    Views
    1,763

    The one loop uses x because it's about the value...

    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...
  20. Replies
    13
    Views
    1,763

    fscanf problem maybe?

    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,...
  21. Replies
    15
    Views
    5,856

    I guess that's what was confusing me, because i...

    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...
  22. Replies
    15
    Views
    5,856

    My x is actually a double, not an integer, so it...

    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...
  23. Thread: fractions

    by zdream8
    Replies
    2
    Views
    2,893

    Oh, awesome! Thanks, I just needed to put the .0...

    Oh, awesome! Thanks, I just needed to put the .0 in...should have tried that. I'm new at this... :P
  24. Thread: fractions

    by zdream8
    Replies
    2
    Views
    2,893

    fractions

    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...
  25. Replies
    15
    Views
    5,856

    All right, so continuing with what I was doing I...

    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...
Results 1 to 25 of 31
Page 1 of 2 1 2