The value of equation

2 views (last 30 days)
Mohamed Magid
Mohamed Magid on 5 May 2021
Commented: Walter Roberson on 6 May 2021
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)

Star Strider
Star Strider on 5 May 2021
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
Mohamed Magid
Mohamed Magid on 6 May 2021
Edited: Walter Roberson on 6 May 2021
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)
Walter Roberson
Walter Roberson on 6 May 2021
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.

Community Treasure Hunt

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

Start Hunting!