Oliveira

190 Reputation

3 Badges

9 years, 360 days

MaplePrimes Activity


These are questions asked by Oliveira

When the solution is obtained in symbolic form, and then numeric values are assigned to variables, the answer is different from the numerical solution.


vol := -R^2*Pi*H*(-3*R*C^2*sin(theta)-3*H^2*cos(theta)^2*sin(theta)*R+6*R*C*sin(theta)*cos(theta)*H-sin(theta)*R^3+sin(theta)*R^3*cos(theta)^2+C^3-3*C^2*cos(theta)*H-cos(theta)^3*H^3+3*H^2*C*cos(theta)^2+3*R^2*H*cos(theta)^3+3*R^2*C-3*R^2*H*cos(theta)-3*cos(theta)^2*R^2*C)/(3*(H^2*cos(theta)^2-R^2+cos(theta)^2*R^2)^(3/2)):


V := (1/3)*Pi*R^2*H:


vp := Pi*h*R^2*(3*H^2-3*H*h+h^2)/(3*H^2):


eq := V-vp = vol;


va := theta = (1/6)*Pi, R = 2, H = 20, h = 14;


Symbolic solution:
sc := solve(eq, [C]);
evalf(subs(va, sc));
   [[C = 18.36540754], [C = 18.29805834 + 0.03888407898 I],  [C = 18.29805834 - 0.03888407898 I]]

Numerical solution:
eq1 := subs(va, eq);
evalf(solve(eq1, [C]));
    [[C = 20.91425055 + 4.492493739 I], [C = 20.91425055 - 4.492493739 I], [C = 13.13302314]]

Why this happens?
I am grateful for your attention.
Sinval Oliveira Santos.

How to build a discrete probability distribution with the function with two variables below?

ff := (x,y)->piecewise(x = 0 and y = 0, 1/8, x = 0 and y = 1, 1/6, x = 1 and y = 0, 1/3, x = 1 and y = 1, 3/8);

Thank you for your help.

Oliveira.

ca:= [a, b, a, a, b, b, b, a, a, a, c, a, c, c, a, a];

I started using Maple for a short time and do not know all the functions and commands. How to split the above list as follows:

[[a], [b], [a, a], [b, b, b], [a, a, a], [c], [a], [c, c], [a, a]]

Thank you for help.

Oliveira.

How to change the font style, globally, the inputs and outputs of computations in Maple 2015? That is, every time a new document is started, the chosen style is automatically applied.

Oliveira.

First 6 7 8 Page 8 of 8