simple calculations
i am trying to do two equations:
1st : (value1 * value2)/2 //shear in a beam
2nd : (value1 * value2^2)/8 //moment on a beam
My code look s like:
1 2 3 4 5 6 7 8 9
|
float temp_mqk,
temp_mgk,
temp_length;
temp_length = record[member_no].member_length;
temp_mqk = record[member_no].member_qk_factored_load; //assign struct memebr qk factored load to temp float
temp_mgk = record[member_no].member_gk_factored_load; //assign struct member gk factored load to temp float
record[member_no].member_max_moment = (((temp_mqk+temp_mgk)*(temp_length*2))/8); //determine max bending and assign to structure
record[member_no].member_shear = ((0.5)*(temp_mqk+temp_mgk)*(temp_length)); //determine shear value and assign to structure
member_details_save();
|
However the values are not calculating correctly
any ideas??
Topic archived. No new replies allowed.