The value of equation

syms x u x3
%x = (0:1:4)
L1 = 8;
L = L1
h1 = 0.1*L
W1 = 17;
f(x)=(4*h1*x/L1)-((4*h1*(x^2))/L1^2);
m1 = diff(f(x));
RAh = 3*W1*L1/8;
RBh = W1*L1/8
HAh = (W1*L1^2)/(16*h1)
HBh = HAh;
H_riser = HAh
VAh = RAh
VBh = RBh
%x = (0:1:L/2);
SFnhac = VAh-W1*x
u1 = m1

Answers (1)

I have absolutely no clue as to what you want.
Try this —
syms x u x3
%x = (0:1:4)
L1 = 8;
L = L1
L = 8
h1 = 0.1*L
h1 = 0.8000
W1 = 17;
f(x)=(4*h1*x/L1)-((4*h1*(x^2))/L1^2);
m1 = diff(f(x));
RAh = 3*W1*L1/8;
RBh = W1*L1/8
RBh = 17
HAh = (W1*L1^2)/(16*h1)
HAh = 85
HBh = HAh;
H_riser = HAh
H_riser = 85
VAh = RAh
VAh = 51
VBh = RBh
VBh = 17
%x = (0:1:L/2);
SFnhac = VAh-W1*x
SFnhac = 
u1 = m1
u1 = 
solve_u1_for_x = solve(u1)
solve_u1_for_x = 
4
.

3 Comments

for x = (0:1:4) I can get the value of u1 and I get this massage
Error using sym.getEqnsVars>checkVariables (line 92)
Second argument must be a vector of symbolic variables.
Error in sym.getEqnsVars (line 56)
checkVariables(vars);
Error in sym/solve>getEqns (line 429)
[eqns, vars] = sym.getEqnsVars(argv{:});
Error in sym/solve (line 226)
[eqns,vars,options] = getEqns(varargin{:});
Error in Untitled211 (line 31)
solve_u1_for_x = solve(u1,(0:1:4))
for instance when I want to solve the next part I recieved this massage ( error using digits line 24 )
x = (0:1:L/2);
SFnhac = VAh-W1*x
u1 = m1
u11=atan(u1,L/2)
u1ac = vpa(u1,(0:1:(L/2)))
u2 = 1/((1+m1^2)^0.5)
u2ac = vpa(u2,(0:1:4))
u3=u1*u2
u3ac = vpa(subs(u3,(0:1:4)))
Qac = SFnhac*u2-H_riser*u3
subs(Qac)
I am not sure why you are not being consistent about what you substitute.
X = (0:1:L/2);
SFnhac = VAh-W1*x
u1 = m1
u11=atan(u1,L/2)
u1ac = vpa(subs(u1,x,X))
u2 = 1/((1+m1^2)^0.5)
u2ac = vpa(subs(u2, x, 0:1:4))
u3=u1*u2
u3ac = vpa(subs(u3, x, 0:1:4))
Qac = SFnhac*u2-H_riser*u3
subs(Qac, x, X)

Sign in to comment.

Categories

Asked:

on 5 May 2021

Commented:

on 6 May 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!