Items tagged with plot

Feed

[[1000, 20], [2000, 25], [3000, 24], [4000, 23], [5000, 24]];
  [[1000, 20], [2000, 25], [3000, 24], [4000, 23], [5000, 24]]
data1 := [[1000, 20], [2000, 21], [3000, 32], [4000, 23], [5000, 23]]; 'data1';
                             data1
a*x^3+b*x^2+c*x+d;
                        3      2          
                     a x  + b x  + c x + d
x;
                               x
Equn1 := CurveFitting[LeastSquares]([[1000, 20], [2000, 25], [3000, 24], [4000, 23], [5000, 24]], x, curve = a*x^3+b*x^2+c*x+d);
plot(Equn1,x= 1000..5000)


 

Least Squares Approximation

 

 

Calculate a least squares approximation using specified data points.

 

 

Theoretical Curves for the Two-Stroke Engines and Four-Stroke Engines Brake Power Vs Brake Efficiency

List of Data Points:

[[1000, 20], [2000, 25], [3000, 24], [4000, 23], [5000, 24]]

[[1000, 20], [2000, 25], [3000, 24], [4000, 23], [5000, 24]]

(1)

data1 := [[1000, 20], [2000, 21], [3000, 32], [4000, 23], [5000, 23]]; 'data1'

data1

(2)

Fitting Curve:

a*x^3+b*x^2+c*x+d

a*x^3+b*x^2+c*x+d

(3)

Independent Variable:

x

x

(4)

Least Squares Curve:

Equn1 := CurveFitting[LeastSquares]([[1000, 20], [2000, 25], [3000, 24], [4000, 23], [5000, 24]], x, curve = a*x^3+b*x^2+c*x+d)

plot(Equn1,x= 1000..5000)

 

 

 

 

NULL

Equn1

31/5+(83/4200)*x-(23/3500000)*x^2+(1/1500000000)*x^3

(5)

 

 

Least Squares Fit of Data by a Specified Curve

List of Data Points:

[[3, -1], [5, 3], [6, -7], [7, 5], [9, -2]]

[[3, -1], [5, 3], [6, -7], [7, 5], [9, -2]]

(6)

Fitting Curve:

a*x^2+b*x+c

a*x^2+b*x+c

(7)

Independent Variable:

x

x

(8)

Least Squares Curve:

CurveFitting[LeastSquares]([[3, -1], [5, 3], [6, -7], [7, 5], [9, -2]], x, curve = a*x^2+b*x+c)

-901/210+(213/140)*x-(11/84)*x^2

(9)
 

 

a*x^2+b*x+c

a*x^2+b*x+c

(10)

plot(sin(x), x = 0 .. 4*Pi)

 

``


 

Download LeastSquareApproximation_2nd_and_3rd_Order.mw

The above command plots one curve alright. I want four such curves to go in the same figure using command like

plot(Equn1,Equn2,Equn3,Equn4,view(x=1000..5000)

I am not getting by the above command what I want. Can any one help. A shortcut method is required for me to repeat many times.

Thanks for help.

Ramakrishnav V
 

Hello

I have question. How can I rotate this 2-D plot and create 3-D plot?

plot(exp(-(x-3)^2*cos(4*(x-3))),x=1..5)

Thank you.

hi my friend. i want to find a approximately function of this plot. how i can get this. and i have numerical value in this excel

Book1.xlsx

 

Dear community, 

I'm new to maple and was wondering if you could help me out.

I have this curve where I want to make a line that goes from x=0.5 up to its value on the curve in this case 1.60 and then all the way to the y-axis so there is an area under the curve which I can color if that's even possible?

I have the following in maple:

k := 2.5;
                              2.5
Ca0 := 1;
                               1
v := 20;
                               20
Ca := Ca0*(1-x);
                             1 - x
Fa0 := Ca0*v;
                               20
Cb := Ca0*x;
                               x
ra := k*Ca*Cb;
                         2.5 (1 - x) x
plot(1/ra, x = 0 .. 1);
 

thank you for your help

Best Regards

Saad

I can not understand why the following statement works perfectly:
with (plots);
P1: = plot (f (x), x = xmin .. xmax, y = ymin .. ymax, color = "green");
P2: = plot (orddir, x = xmin .. xmax, y = ymin .. ymax, color = "blue");

Plots [display] (plottools [line] ([ascf, ymin], [ascf, 10]), color = red;
Plot ([5, y, y = 0 .. 10]);
P3: = implicit plot (x = ascf, x = xmin .. xmax, y = ymin .. ymax, color = red, linestyle = 3, thickness = 2);
P4: = plot (points, x = xmin .. xmax, y = ymin .. ymax, style = point, symbol = circle, symbolsize = 20, color = "black");
P5: = plot (h, x = xmin .. xmax, y = ymin .. ymax, color = "yellow");
Display ({p1, p2, p3, p4, p5}, axes = normal, scaling = unconstrained, title = "Parallel, vertice, focus, direction and axis of symmetry", gridlines = true);

While in the following
Points: = [F, V, A, B];
with (plots):
P1: = plot (f (x), x = xmin .. xmax, y = ymin .. ymax, color = "green");
P2: = plot (yd, x = xmin .. xmax, y = ymin .. ymax, color = "blue");
P3: = implicitplot (x = xv, x = xmin .. xmax, y = ymin .. ymax, color = red, linestyle = 3, thickness = 2);
P4: = plot (points, x = xmin .. xmax, y = ymin .. ymax, style = point, symbol = circle, symbolsize = 20, color = "black");

Do (% Plot0 = display ({p1, p2, p3, p4}, axes = normal, scaling = unconstrained, title = "Parallel, vertices, focus, direction and axis of symmetry", gridlines = true));

P4 does not print anything. In thanking you for the kind attention, I cordially greet you. Carmine Marotta ..

Hi everyone,

as a very basis example I've tried to get the equipotential lines of an 1/r² potential in the x-y-plane using contourplot. However, I obtained the following very strange result. Do you get the same mistake or is there something wrong on my end?

Thanks in advance,
Sören


 

with(plots):

plots:-contourplot(1/(x^2+y^2), x = -2 .. 2, y = -2 .. 2)

 

plots:-contourplot(1/(x^2+y^2), x = -2 .. 2, y = -2 .. 2, contours = 5, numpoints = 100)

 

plots:-contourplot(1/(x^2+y^2), x = -2 .. 2, y = -2 .. 2, contours = 5, numpoints = 1000)

 

plots:-contourplot(1/(x^2+y^2), x = -2 .. 2, y = -2 .. 2, contours = 5, numpoints = 10000)

 

``

Download contourplot.mw

Hello guys,

I´ve a little bit problem by plotting an pyramid with an triangle in it. When I want to display both

parts, in the drawing the left and the right part and the top of the pyramid is missing. What is the problem ???
Abituraufgabe_2016_B2_Pyramide.mw

Thanks

hi
i want to draw a plot with to column-numerical that i imported from excel (i import one of the, for x axis and another for y axis)

All the 3d plot in my maple are upside down.....the tickmarks..the numbering even the lebeling are also upside down...how do i solve it....plz help

I have a complex function for both the electric and magnetic fields for 2 laser pluses colliding they are only 2 dimensions z,t;

E(z,t) := -I*a*exp(-(z-Z+t)^2/sigma^2)*sin(omega*(z-Z+t))+a*exp(-(z+Z-t)^2/sigma^2)*sin(omega*(z+Z-t))

B(z,t) := -a*exp(-(z-Z+t)^2/sigma^2)*sin(omega*(z-Z+t))+I*a*exp(-(z+Z-t)^2/sigma^2)*sin(omega*(z+Z-t))

Where a,omegasigma are real constants and Z is the initial offset for the pluses,

I would like to plot them together with there real and imaginary parts on two axes and then extended along the z direction, if possible I would like to animate them. To hopefully get a moving plot like this except it's a laser pluse not a continuous wave,

Hi!

If somebody could help me it would be awesome!

I would like to be able to switch the independent variable onto the vertical axis!

If that is not possible, what i'm trying to do is modelise in a function a set of points, but with multiple values for the same x, but not more than one for the y, so the best option would be to switch the variables, to have x dependant of y. My graphic has to be vertical though, so I can't just switch the points.

Thank you a lot

Charlotte

I am plotting a pair of lists of points using

pointplot(Listap, Listbp, symbol = point, symbolsize = 1, size = [1200, 1200])

 

How could is do this with plot so I can add colours? Along the lines Listap(i)^2+Listbp(i)^2 =R, R is in the range 0..1,then colour =R*256 or any other imaginative way of adding colour.
 

restart

with(plots):

with(plottools):

``

``

NULL

``

z := (m+I*n)/(p+I*q)

(m+I*n)/(p+I*q)

(1)

g := proc (z) options operator, arrow; (z-I)/(z+I) end proc;

proc (z) options operator, arrow; (z-I)/(z+I) end proc

(2)

bz := simplify(evalc(Im(z)));

(-m*q+n*p)/(p^2+q^2)

(3)

a := simplify(evalc(Re(g(z))));

(m^2+n^2-p^2-q^2)/(m^2-2*m*q+n^2+2*n*p+p^2+q^2)

(4)

b := simplify(evalc(Im(g(z))));

(-2*m*p-2*n*q)/(m^2-2*m*q+n^2+2*n*p+p^2+q^2)

(5)

``
"  r:=15;   Lista:=Vector();  Listb:=Vector();  j:=1;  for m from -r to r do   for n from -r to r do   for p  from -r to r do   for q from -r to r do  if p<>0 and q<>0 and m^2-2 m q+n^2+2 n p+p^2+q^2<>0 and bz>=0 then  Lista(j):=a; Listb(j):=b;  j:=j+1;  end if;  end do:  end do;  end do;  end do:  j; :"

435713

(6)

``

``

``

``

``

pointplot(Lista, Listb, symbol = plottools:-point, symbolsize = 1, size = [1200, 1200])

 

NULL

``

``


 

Download 096-Chayley_transform_for_MP_question.mw

Hello, I am trying to plot an expression for my General Relativity class, this expression is one of the expanding universe FLRW solutions to the Einstein field equations and contains an unknown functions.

sqrt(S(t))*sqrt(1+S(t))-arcsinh(sqrt(S(t))) = t

My question is how do I get maple to plot this?

Thank you

I have made an animate-plot with trace function enabled and I was wondering if there was something I could do so it would show the value of the variable when trace reached frame x and y and plot it in the plot or maybe somewhere else.

Thanks in advance.


 

S[1] := .51-.67030*t+.4644645000*t^2-.2542824350*t^3+.1337509523*t^4

S[2] := .29-.37330*t+.2539795000*t^2-.1337383850*t^3+0.6737783824e-1*t^4

S[3] := 0.6e-1-0.6280e-1*t+0.3392700000e-1*t^2-0.7715060000e-2*t^3-0.2012235525e-2*t^4

V[1] := .14+.18480*t-.3482570000*t^2+.2511604200*t^3-.1217312553*t^4

V[2] := .37-0.9810e-1*t-.1638085000*t^2+.1665366350*t^3-0.8847577175e-1*t^4

V[3] := .59-.36870*t+0.126205000e-1*t^2+0.8559214500e-1*t^3-0.5666617885e-1*t^4

Iota[1] := 0.8e-1-.1000*t+0.6280600000e-1*t^2-0.2652762667e-1*t^3+0.8545290360e-2*t^4:

E[1] := 0.2040e-2*t-0.3584600000e-2*t^2+0.3405427000e-2*t^3-0.2270144502e-2*t^4:

R[n] := 0.5e-1+0.715e-1*t-0.1627750000e-1*t^2-0.3034627500e-1*t^3+0.2606816769e-1*t^4:

> Pls let someone help me plot S1;S2,S3 using Maple.

``


 

Download FINAL_RESULT.mw

1 2 3 4 5 6 7 Last Page 1 of 184