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...
Type: Posts; User: ianrice
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...
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
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...
I didn't like it much either, used a while loop instead, much easier. Thank you
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...
I need to use the format like I have, right now my for loop is infinite and I'm not sure why
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...
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...