Kitonum

21475 Reputation

26 Badges

17 years, 50 days

MaplePrimes Activity


These are answers submitted by Kitonum

I took  x0=0, y0=1 .

restart;
x0:=0: y0:=1:
plot([(-y0 - x0)*exp(-2*t) + (y0 + 2*x0)*exp(-t),  -2*(-y0 - x0)*exp(-2*t) - (y0 + 2*x0)*exp(-t), t=0..10], labels=[x,y]);

       

 

X:=(1/6)*sqrt(2)*sqrt(sqrt(13)+11):  Y:=-1/6+(1/6)*sqrt(13):
x:=y->piecewise(y<=1 and y>=Y, X/(Y-1)*(y-1), y<Y and y>=-Y, X, X/(-Y+1)*(y+1)):
T:=plots[textplot3d]([[1.35,0,0, x, align=below],[0,1.35,0, y, align=below],[0,0,1.15, z, align=right]], font=[times,roman,18]):
A:=plot3d([x(y)*cos(alpha), y, x(y)*sin(alpha)], y=-1..1, alpha=0..2*Pi, style=surface, color=khaki, view=[-1.4..1.4,-1.4..1.4,-1.2..1.2], axes=normal, orientation=[15,70,0]):
plots[display](A,T);

            

User lighting was used.

It can be done only for solving of a linear equation by Student[Basics][LinearSolveSteps] command. See help on this command.

Example of use:

Student[Basics] [LinearSolveSteps](2*x-1=1/3+x, x);

                      

Do not use brackets to group terms in an expression. They are only used to create lists. 

plot(9.2-8.93*35.3/(11.17-8.93)*(exp(-8.93*t)-exp(-11.17*t))-8.3*exp(-11.17*t), t=0..1);

              

 

Straight from the Maple worksheet window:

Help -> On the Web -> Application Center

and download the applications that interest you. 

Unfortunately for the problem to collect  rhs(aa)  for  omega^(-sigma+1)*L   neither  frontend  nor  freeze  method does not work. Here 2 more complicated ways to solve the problem.

First way:

lhs(aa)=applyop(collect, [1,1], frontend(collect, [rhs(aa), omega^(-sigma+1)]), L);

Second way uses  subs  and   collect  commands only:

lhs(aa)=subs(t=omega^(-sigma+1)*L,collect(subs(omega^(-sigma+1)=t/L, rhs(aa)), t));

 

The solution to the second problem:

lhs(aa)=applyop(factor, [1,1], frontend(collect, [rhs(aa), omega^(-sigma+1)]));

or simply

simplify(aa);

for full factorization.

 

restart;

r:=6:
plot3d([r*sin(theta)*cos(phi), r*sin(theta)*sin(phi), r*cos(theta)],  phi=0..2*Pi,  theta=0..Pi);

 

Addition: The shortest way of plotting a sphere is

restart;
plots[display](plottools[sphere]([0,0,0], 6));

Small circles at the ends of the segments should be plotted separately:

f:=x->piecewise(type((x+2)/4,integer)=false,x-floor((x+2)/4)*4, undefined):  # Setting for your function
f(2.5), f(-2), f(2), f(6);
A:=plot(f, -10..10.1, scaling=constrained, discont):
B:=plot([seq([-10+4*k,-2],k=0..4), seq([-6+4*k,2],k=0..4) ],style=point, symbol=circle):
plots[display](A, B);

f(x,y,z)=1  is a surface in the 3D-space. It can be plotted by  plots[implicitplot3d]  command.

Example:

plots[implicitplot3d](x^2+y^2-z^2=1, x=-3..3, y=-3..3, z=-3..3,  numpoints=8000);

Use  plottools[getdata]  and  plots[display]  with  insequence  option.

Example:

A:=plots[implicitplot](x^5+y^5-x*y=1, x=-3..3,y=-3..3, gridrefine=2):
B:=plottools[getdata](A):
C:=convert(B[3],listlist):
plots[display](seq(plot(C[1..n]), n=1..nops(C), 3), insequence);

 

You can use  seq  command:

DataName:=Array(["Data1", "Data2", "Data3"]):
DataSet:=[seq(i=DataName[i], i=1..numelems(DataName))];

                      DataSet := [1 = "Data1", 2 = "Data2", 3 = "Data3"]

 

Edited.

In this line 

fplt[j] := plots[odeplot](sol2, sol1, [[eta, diff(f(eta), eta)], [eta, diff(f(eta), eta)]], color = K1[j], axes = boxed);

should be one thing  only  sol2  or  sol1

Combine these graphs on one plot you can by  plots[display]  command.

By this way you can build angles on the plane anywhere and any values:

restart;
with(plottools): with(plots):
A:=line([0.5,0.5],[1.5,0.5], color=red, thickness= 3):
B:=rotate(A, 9*Pi/4, [0.5,0.5]):
C:=plot([0.5+(0.1+0.015*t)*cos(t),0.5+(0.1+0.015*t)*sin(t), t=0..9*Pi/4], color=black):
P:=curve([[0.655,0.6],[0.647,0.647],[0.68,0.625]]):

T:=textplot([0.45,0.45, 9*Pi/4], color=blue):
display(A, B, C, P, T, scaling=constrained, view=[0..1.7,0..1.5]);

 

Edited. Arrow added at the end of the arc, which shows the direction of the rotation.

If you want to immediately build a few graphs for specific values of the parameter m, and of specific colors, you can do so:

M:=[0.5, 2, 5, 8, 10]:  Color:=[red,green,blue,gold,black]:
plot([seq(-arctan(2*m*x/(1-x^2)), m=M)], x=0..10, color=Color,  numpoints=1000, discont, scaling=constrained);

All graphs have finite discontinuities at  x = 1  ( limit(f(x), x=1, left)=-Pi/2  and  limit(f(x), x=1,right)=Pi/2 )

 

Carl, you have incorrectly entered the expression for the function.

Pretty good approximation gives the model function with  arctan :

x_val:=<250,300,350,397,451,497,547,593,647,691,745,788,840,897>:

y_val:=<0,0.5,2,6.3,23.2,48.7,71.2,83.4,90.1,92.8,94.7,95.7,96.9,97.8>:

A:=plot(x_val, y_val, style=point, symbol=solidcircle, color=blue, symbolsize=12):  # Plot of initial data

f:=Statistics[NonlinearFit](a+b*arctan(c*x+d),x_val, y_val, x, initialvalues=[a = 50, b = 33, c = 0.02, d=-12]);  # Model function

B:=plot(f, x=x_val[1]..x_val[-1], color=red): # Plot of the model function

plots[display](A, B);

 

Addition: If the values of the y-variable are the percentages, then we can simply scale these values. The graph will have the same form:

x_val:=<250,300,350,397,451,497,547,593,647,691,745,788,840,897>:
y_val:=1/100*<0,0.5,2,6.3,23.2,48.7,71.2,83.4,90.1,92.8,94.7,95.7,96.9,97.8>:
A:=plot(x_val, y_val, style=point, symbol=solidcircle, color=blue, symbolsize=12):  
# Plot of initial data
f:=Statistics[NonlinearFit](a+b*arctan(c*x+d),x_val, y_val, x, initialvalues=[a = 50/100, b = 33/100, c = 0.02, d=-12]);  # Model function​​​​​​​
B:=plot(f, x=x_val[1]..x_val[-1], color=red): # Plot of the model function
plots[display](A, B);

 

First 176 177 178 179 180 181 182 Last Page 178 of 290