MaplePrimes Questions


Q3) Write a procedure, isTriangle, to determine if any three given
 numbers represent the lengths of the sides of a triangle.
The procedure should be able to deal with any input.

I have done the following and get an error
 

isTriangle:=proc(a,b,c::nonnegative and numeric)
if (a^2+b^2)=c^2 then print (a,b,c "represent the sides of a triangle")
end if;
end proc;
Error, unexpected string

Thanks very much for your help!
So I've done this so far:
 
Marks:=proc(m::nonnegative, numeric)
if m < 40 then print (m, Fail)
elif m < 50 then print (m, `Third Class`)
elif m < 60 then print (m, `Lower Second Class`)
elif m < 70 then print (m, `Upper Second Class`)
elif m < 100 then print (m, `First Class`)
elif m > 100 then print (`error`)
end if;
end proc;
proc(m::nonnegative, numeric) ... end;

Hi,

Suppose you have an unknown function y(x)  that is 2*Pi periodic, i.e. (y(0) = y(2*Pi)). Is there a way to declare this in Maple? The reason I want to do this, is that if I integrate the derivative y'(x) of  this unknown function on [0,2*Pi]I would like Maple maple to be able to recognize that:

 

int(y'(x),x=0..2*Pi) =0

 

Thanks

How can I precisely control the camera position using veiwpoint in an animated  multibody display.

My question arises from an post by John May, http://www.mapleprimes.com/maplesoftblog/95570-Klein-Bottle-Plot

I have attempted to use the excellent articles with multi-body displays and was forced to use plots[display] rather than the plot3d function as described. It went well but...

I have a situation

restart:
with(IntegrationTools):
with(PDEtools):
declare(w(r));
assume(delta::constant, R::constant, K:: constant, U::constant):
ODE_1:=diff(w(r),r)+R*(diff(w(r), r))^3-K/r;
 
declare(u(r));
ODE_T_1:=collect(algsubs(w(r)=u(r)+(r-1)*(U-0)/(delta-1), ODE_1),diff(u(r), r)) ;
eq1:=int(phi[i](r)*ODE_T_1,r=1..delta) assuming delta > 1;
eq2:=Expand(eq1);
eq3 := applyop(u->Parts(u,phi[i...

Hi all I have the following ODE

ODE_1:=diff(w(r),r)+R*(diff(w(r), r))^3=K/r;

ODE_T_1:=collect(algsubs(w(r)=u(r)+(r-1)*(U-0)/(delta-1), ODE_1),diff(u(r), r)) ;

 

 and when I try to do the following integration,

eq1:=int(phi[i](r)*ODE_T_1,r=1..delta) assuming delta > 1;

it gives the following error

"

Error, (in assuming) when calling 'int'. Received: 'wrong number (or type) of arguments:

In a plot of y=x^2 how can one choose to have no tickmarks except for at given points say x=2 and x =8 and of course on the corresponding y values?

 

I created a quick procedure to produce a violin plot and I would like some help to make it better. 

I would like it to show a more accurate distribution of the data, I interpert the graph as the data having negative values which of course there is none.  How can we fix that? I realize we can just set the range=min(data)..max(data) but then I loose the violin tips and I would need to place a line to cap the top and bottom.

So how can we create a violin...

Hello. I am trying to do a project. Howerver the following code is causing Windows 7(x64) to error.

First, I get a message from mserver.exe saying: mserver has stopped working.

I click "Close the program" and I get "Kernel connection has been lost."

This is happening when I calculate the Groebner Basis by the following code. It is all right when I calculate the Groebner Basis when the problem to be solved is simpler. The memory of my computer is...

writedata("C:\\duffy\\mapleprogramme\\relevant\\conditional optimal\\optimal3", css, float);
> convert(css, matrix);
I used the above command to save data into a file but it didn't work. I also used the comand export (which would be better) to save data in one excel column, but it didn' work either, could you please help me understandig how can I save data? The data appear in the programme with this format:
Matrix(1, 1, {(1, 1) = .73951725}), Matrix(1, 1, {(1, 1...

Hi, 

When I try the example of a histogram plot from the help system (under Statistics, Histogram), I get an error.

The example (entered in document mode) and error follow below.  Can someone please shed light on this?

with Statistics; with(plots):
N := RandomVariable(Normal(0, 1)):
A := Sample(N, 1000):
P := DensityPlot(Normal(0, 1), color = "Niagara Red"):
Q := Histogram(A, averageshifted = 4, style = polygon, color = "LightSlateGrey"):

Maple plots pareto charts slightly different than what I usually see.  It might be nice to include an option in the pareto to flip the axis.  But I think maybe the reason maple has pareto plotted this way (having the x and y axes flipped), is because the x-axis is unable to angle descriptors (an option I have asked to be added in the past)

Using the pareto example from maple help, when I rotate and flip the chart from plottools where did the y axes labels go?

Any plans of correcting the obvious problem the MaplePrimes text editor has with the inequality sign < ?
It is really quite annoying.
Everything on a line of code after < is very often discarded with the obvious effect that the code doesn't run.

Hi 

I want  to make the phase plot of d(Z(t))/dt (along y) and Z(t) (along x axis). The initial conditiona are arbitrary. I only have one equation:

d(dz/dt)/dz = - (sqrt(d(z^2)/dt + 10^10 * z^2)*dz/dt + 10^(10)*z)/dz/dt

Is it still possible to make a phase space plot or do i need another equation?

Hi, I am looking for some help for a computation on Maple. I have the following objects

First 1628 1629 1630 1631 1632 1633 1634 Last Page 1630 of 2430