















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
















if logical expression
statements
end
Start
if Logical Expression
Statements
end
Statements
True
False
if logical expression 1 & logical expression 2 statements end
r = 7; s = -11; % Double if if r < 13 if s > - t = log(abs(r)+abs(s)) end end % if-n-& if (r < 13)&(s > -17) q = log(abs(r)+abs(s)) end
The OutPut **t =
q = 2.**
Start elseif FlowChart
if Logical Expression
Statements-
end
Statements
elseif Logical Expr True
else
Statements-
True Statements-
else
elseif Example
x = input('enter scalar: x = ') if x > 10; z = log(x); elseif x >= 0 z = sqrt(x); else z = exp(x) - 1; end % output to user y = z The InPut & OutPut x = -3. y = -0.
>> NYgiant = 'Mel Ott' NYgiant = Mel Ott
>> p = log(digits) ??? Function 'log' is not defined for values of class 'char'.
No Indent for String
In This Case the ENGR36 Force- Balance Model
In ENGR36 we Learn that the Spring Force
W k x x d = + − ≥
= < 2 :
: 1 2
1
After Brk-Pt
(^111) 1 dW k m = dx =
(^2 )
1 dW k k m dx = = +