Search:

Type: Posts; User: ianrice

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    4,276

    My if test currently reads ...

    My if test currently reads
    if(temp>=safe_temp-.0999 && temp<=safe_temp+.0999)
    test=1;
    else
    test=0;

    I have a while loop that will stop if test==1, but it doesn't stop when I want it...
  2. Replies
    5
    Views
    4,276

    I want to test for both the upper and lower...

    I want to test for both the upper and lower limit. So taking the absolute value will not work. I need to see if my calculated value is within the range. Like this 24.9<calc_temp<25.1
  3. Replies
    5
    Views
    4,276

    Check Values within a range

    I am running a program that calculates heat dissipation of heat copper sphere and I need to run the calculations until the temperature of the sphere is within .1, that is either +.1 or -.1 of a set...
  4. Replies
    2
    Views
    1,147

    I didn't like it much either, used a while loop...

    I didn't like it much either, used a while loop instead, much easier. Thank you
  5. Replies
    2
    Views
    1,147

    For Loop Problems

    I am creating a program that calculates the beam sized needed for a certain load based on three given equation. I need to automate the selection of beam width. Which means I have to run the functions...
  6. Thread: For Loop Help

    by ianrice
    Replies
    6
    Views
    1,065

    I need to use the format like I have, right now...

    I need to use the format like I have, right now my for loop is infinite and I'm not sure why
  7. Thread: For Loop Help

    by ianrice
    Replies
    6
    Views
    1,065

    I probably should have been more clear in my...

    I probably should have been more clear in my problem statement. I need to automate the selection of beam width. Which means I have to run the functions until they pass the test. I am incrementing the...
  8. Thread: For Loop Help

    by ianrice
    Replies
    6
    Views
    1,065

    For Loop Help

    I am creating a program that calculates the beam sized needed for a certain load based on three given equation. I am having trouble with my for loop. I want the program to continue to test the beam...
Results 1 to 8 of 8