MaplePrimes Questions

I find that Maple leaves things like sin^2(x) + cos^2(x) as they are, which is giving me some very long and complicated looking expressions that are often just simple things.

I'm sure there must be a way of sorting this out but I can't find anything.

Also, on a more theorectical note, does anyone know why Maple doesn't do this automatically, or at least have a pre-programmed command to simplify such things?

Hi

How can add the values of a list with the list as an argument of a function. As exmaple:

f([1,2,3,4,5]);

                              15

Thanks for any help,

Dat

 

Hi. I have a function F as follows: F := 1/16*sin(Pi*cos(h))^2*sin(Pi*sin(h))^2/cos(1/2*Pi*cos(h))^2/cos(1/2*Pi*sin(h))^2; It has a maximum in the interval 0..Pi/2 at Pi/4. If I do: Fder := diff(F, h); solve(Fder, h); > (1/2)*Pi, -(1/2)*Pi, 0, Pi the solution Pi/4 is missing from the set returned by solve, and solve does not even issue a warning about the incomplete solution set. Surely Pi/4 is a solution, as you can find it visually: plot(F, 0..Pi/2); and also numerically: fsolve(Fder, h=Pi/4+0.1); > (1/4)*Pi

How do I specify curly braces in the argument of \maple*?

I tried them as single characters, then they are gone after the Latex run.

When I try \{ ... \} instead, then the latex2qu run gets a stack overflow.

I can write square brackets instead and replace them in the .qu file, but that's very inconvenient.

Or is it a general necessity when you write your questions using Latex, that you have to edit the .qu file for similar shortcomings?

 

I have an equation for inviscid bubble expanding of the form:

ode:=R(t)*diff(R(t),t,t)+(diff(R(t),t))^2-1/R(t)=0

Sol:=dsolve(ode, numeric, initialConditions:=R(0)=R0,D(R)(0)=0)

Now, I want to plot the following expression:

Sol2:=1/R(t)

How can I do it?

 

Thanks ahead,

Mark

 

See the post link below which gives the ability to find the gradient of a vector, not a scalar field.

http://www.mapleprimes.com/forum/gradientvectornotgradientscalarfunction

The solution was to use the Jacobian command.  Now I need to take the time derivative of that expression because now the velocity is a function in time.  Unfortunately, MAPLE wants an algebraic expression for d/dt operations.  What command to I need to use for this operation??

 

poi:=x->exp(-0.2225)*0.2225^x/x!;

 

for i from 0 to 4 do > evalf(poi(i)*10000,2) > od;

 

  1. Is there a way to write procedures in Maple which return procedures?
    1. If there is, would you please give me an exemple?
  2. What's the difference between writing a procedure with '->' and 'proc'?

Hello!!!

I have an equation written in several terms: Q:= T1+T2+...+T37.

I want Maple to present my equation Q in the order I typed but it sorts it in an strange way, for example, the order would be: Q:=T5+T3+T35+...+T3.

Because terms T1...T37 are quite complicated expressions, I need Maple to keep them in the order I indicated in the sum.

Is there anyway that I can force Maple to keep it in the right order?

 

Thanks!

my programme seems to be giving me all permutations on a nXn board been trying to find where i went wrong but its took me days and still cant locate ... i want this procedure to give me the n queens on a nxn board that are non attacking. please help

.place:=proc(z)
global L;
local i,k;
k:=z;
L:= Array(1..k);
for i from 1 to k do
if L(i)=L(k) # two in the same column
or abs(L(i)-L(k)) = abs(i-k) # in the same diagonal
then
return (false);
fi:
od:
return (true);
end proc:

I am trying to view some fairly involved 3D plots in Maple 10, where I both construct some polyhedra, and label the points. When I click on the image, in order to rotate it, etc., it vanishes. Generally, I can recover it if I slightly scroll the page up or down (manually -- Maple 10 has no scrolling from the mouse -ack!). But if I touch the image again, it vanishes again. This does not seem to happen if I view simpler images, but I need to view the sets, and their labels (vertices). Any ideas? Thanks!

(1/2)*sqrt(2)

I know that it is too simple, but if my expression has lots of these terms then it will take me some time to simplify it by hand.

I am looking for an automatic way to do it in Maple.

 

Thanks

tlist := [ [s] ]:
  for j to 4 do
    if tlist[-1,1]=s then
      tlist := [ tlist[], [t,tlist[-1][]] ]
    else
   tlist := [ tlist[], [s,tlist[-1][]] ]
  end if
 end do:
tlist;
 

which gives result

[[s], [t, s], [s, t, s], [t, s, t, s], [s, t, s, t, s]]

 

is there an easier way of writing this?

Hi I am trying to plot sin (pi x) but maple says

Warning, unable to evaluate the function to numeric values in the region; see the plotting command's help page to ensure the calling sequence is correct

I cant understand this warning, as when i put 3.14 instead of pi it plots a nice graph.

 

Please help

In Maple 13, I use: convert(arccosh(x),ln); Maple gives: ln(x+sqrt(x-1)*sqrt(x+1)); which is fine. Now try and convert back: convert(ln(x+sqrt(x-1)*sqrt(x+1)),arctrigh); Maple gives: ln(x+sqrt(x-1)*sqrt(x+1)); Why doesn't Maple return arccosh(x)? Thanks.
First 2029 2030 2031 2032 2033 2034 2035 Last Page 2031 of 2434