Search:

Type: Posts; User: John Connor

Search: Search took 0.00 seconds.

  1. Replies
    11
    Views
    2,727

    Hi I just realized that this matrix is...

    Hi

    I just realized that this matrix is unnecessarily large...
    I can do my stuff with much smaller matrices...

    Thanks anyway!!!
  2. Replies
    11
    Views
    2,727

    LOL, my adviser wouldn't let me use the super......

    LOL, my adviser wouldn't let me use the super... :P
    Can you point me a way to read such a big matrix as a (100e3)x(100e3) of doubles in a ordinary PC?

    Thanks
  3. Replies
    11
    Views
    2,727

    It's because I need h, t_max/min, y_max/min to be...

    It's because I need h, t_max/min, y_max/min to be double and they're not always cute like 500 and 1e-2...

    Thanks again...

    PS I've just read the following:...
  4. Replies
    11
    Views
    2,727

    Actually, I have: # define h (1e-2) #...

    Actually, I have:


    # define h (1e-2)
    # define t_min -500.0
    # define t_max 500.0
    # define y_min -500.0
    # define y_max 500.0
    # define lin (unsigned long long)((y_max-y_min)/h+2)
    # define col...
  5. Replies
    11
    Views
    2,727

    Sorry. My fault. But I still receive integer...

    Sorry. My fault.

    But I still receive integer overflow when switching to unsigned long long...
  6. Replies
    11
    Views
    2,727

    integer overflow

    Hi

    I need help to know why am I getting "integer overflow" when trying to assign 10^10 to a
    unsigned long int. My compiler is (gcc 4.2).

    Doesn't unsigned long int vary from 0 to 4,294,967,295...
  7. Replies
    3
    Views
    977

    Thanks again. That turned out to be exactly...

    Thanks again.

    That turned out to be exactly the case!
  8. Replies
    3
    Views
    977

    Thanks. I'll try that right away!

    Thanks.

    I'll try that right away!
  9. Replies
    3
    Views
    977

    printf() question

    Hi there.

    I'm writing a program that makes huge amounts of calculations without user's interference.

    So I wrote in the code some printf() just to know when it's doing what.

    For...
  10. Replies
    4
    Views
    1,325

    Thanks

    Thanks
  11. Replies
    4
    Views
    1,325

    Thanks But how can I test if a division...

    Thanks

    But how can I test if a division results an integer or not? At least bounded by some defined precision, say 1E-15.

    I though using something like

    if x/y- the integer part of x/y<some...
  12. Replies
    4
    Views
    1,325

    modf() anomalous behaviour

    Hi

    There is something annoying me for a while...
    When I execute the program


    int main(void)
    {
    double integer_part,decimal_part;
  13. Replies
    12
    Views
    36,026

    Hi, thanks for the tip. The program is running...

    Hi, thanks for the tip.
    The program is running ok after I changed things based on what was told here...

    Sorry for bothering you all with newbie questions, but I think I'm starting to learn it...
  14. Replies
    12
    Views
    36,026

    Hi At the first time, wen I wrote the code ...

    Hi
    At the first time, wen I wrote the code


    #include <stdio.h>
    #include <math.h>
    #include <stdlib.h>
    /*file global.c*/

    static long double h=1e-2;
  15. Replies
    12
    Views
    36,026

    Thanks a lot! That really helped me. :)

    Thanks a lot! That really helped me.
    :)
  16. Replies
    12
    Views
    36,026

    Thanks I realised my mistake in the previos reply...

    Thanks I realised my mistake in the previos reply and removed the t_max t_max...

    Now, if I use the expression


    #define t_max 2.0*3.1415926535897932384626433832795


    Can i call t_max...
  17. Replies
    12
    Views
    36,026

    Ok. As a matter of fact I want them to be global...

    Ok.
    As a matter of fact I want them to be global and static as well.
    I read about the #define environment to create macros but I'm not sure if


    #define t_max...
  18. Replies
    12
    Views
    36,026

    initializer element is not constant...

    Hi
    I'm trying to compile the following code, but gcc 4.2 returns the messages
    "global.c:8: error: initializer element is not constant"
    "global.c:9: error: initializer element is not constant"

    ...
  19. Replies
    2
    Views
    1,435

    Thanks mike_g. That helped me alot!!!

    Thanks mike_g.
    That helped me alot!!!
  20. Replies
    2
    Views
    1,435

    pointer manipulating 2-dimensional array

    Hi.
    I'm beginner with C and I'm having problem with the following source code:



    /*****************************************************************************************************/
    main()...
Results 1 to 20 of 20