I need some information about `if`...

Hi, I can't find any information what does FI mean, for example: f := proc(x) if x>0 then x else -x fi; end proc: f(-3); or: if iseuler(G) then continue else RETURN (print ("The graph does not have an Euler circuit")) fi; I'm tired of googling already, Maple Help doesn't have any information about fi, what might it be? perhaps some closing declaration instead of 'end if'? I would be grateful for any comments, thanks in advance, Sven

polynomial from list of coefficients...

is there any way of creating a polynomial in maple from a list of coefficients (i could write my own function, but this is annoying, no?). specifically i would want an inverse to the PolynomialTools:-CoefficientList function, f([1, 2, 3]) would yield me 1 + 2*x + 3*x^2. i cant understand the apparent lack of such an elementary function, i must be missing someting? thanks

Two plotting queries...

Hiya,

I have two questions...
Firstly when plotting a graph in Maple using plots[display]({A1,A2,A3}), is there anyway to switch the horizontal and vertical axes such that f(z) is on the horizontal axis and z along the vertical?

Secondly, I'm trying to plot a sum at various times t,

c(z,t)
:= Sum(A[n]*Phi[n](z)*exp(-lambda[n]*t), n = 1 .. 10)

Fitting Imported data to a Gaussian distribution...

I several peaks from emission spectra which I am trying to fit wit a Gaussian distribution.

y = y_0 + A*exp[-{(x-x_0)/(width)}^2

The problem I am running into is I am getting fits which are wrong.  Maple returns:

fit_658 := 1.+1.*exp(.50000000000000*(z-1.)^2)

-7e05+2.7e06*exp(((z-656.1)/9)^2)

Also, I am interested in finding the deviation in the parameters which are found.

How to translate from Maple to Maple TA?...

I know how to solve a problem in Maple, but can't translate into Maple TA. I'm teaching elementary statistics, and want students to estimate a median using a cumulative frequency distribution.

In Maple, I randomly generate some intervals and frequencies. Then I define the CFD by giving the end points and the cumulative frequency, like;
(1) XY:= Array([[x0,cf0],[x1,cf1],[x2,cf2],[x3,cf3],[x4,cf4]]);

Symbolic Vector Manipulation...

I would like to do something like a derivative with respect to a vector or really anything involving a vector (not of a known length or known values) going in and a vector coming out:

diff( Transpose(x) * A * x, x)

Is this possible?

It's just that it is very different if you do x*(x+1) if x is a vector or if x is a scalar.  Does this make sense?

Any tips would be great!

Thanks,

Dave

A random boolean that has a chance = p of being tr...

Hello,

I have another question. I would like to construct a code, demonstrating the loss of information when sending codewords.  Usually, one assumes that each entry of the codeword has a chance equal to p  (like p=0.17) of being incorrectly sent.  How can I have such a random element in my code?

Thank you,

fredbel6

Goldstein Classical Mechanics "Special Relativity"...

The question is,

A particle in hyperbolic motion starts from the origin at t = 0.  Find the time t[0] such that if a photon is emitted from the origin after t[0], it will never catch up with the particle.

Starting to get  really agitated, and don't know where else to turn to.

Thanks,

very respectfully,

(forgive the ranting).

Fonts in plots...

I have a 2D and a 3D plot which are close together and I would like them to have a similar look. However, when I set the caption with:

caption=["whatever text I want here", font=[HELVETICA,BOLD,12]]

I get what appears to be different fonts on the two plots.

Any suggestions as to whether I am doing something wrong please?

(And does Maple not allow me to use any font I want?)

Many thanks

Karina

Trying To Install A User Defined Package...

I downloaded John Fredsted's Gravitation code from the Maple application center, and now I'm trying to get it to be a package.

However, I'm having trouble doing this.

Can anyone help me get to the point where I can access this application as any other manufacturer produced package using the with command ?

v/r,

easy way to do it?...

Hey

I was discusing Maple and Matlab with one of my friend.

He said that in Matlab he can do

a:=1:12

b:=sin(a)

plot(a,b)

that's easy in matlab to do so

i use

> ptlist:=NULL:
> for n to 12 do
> ptlist:=ptlist,[n,sin(n)]:
> od:
> plot([ptlist]);

do to so

is there any easy way to do that in maple?

like creat a sequence from 1 to 12? ( besides seq(n,n=1..12))

thanks

how will maple response to non-unique solutions??...

dsolve( {diff(x(t),t)=sqrt(x(t)), x(0)=0}, x(t));

use the theorem to test the ODE ,the solutions are unique

however maple gives me a unique solution?

Multiple answers in Matrix type questions...

Hi

I'm currently trying to write a matrix question. My problem is that the answer can take to forms. I can use a maple graded question to exect both answers but am having trouble when it comes to using a 'matrix; type question. It there a way to get the matrix question to accep the both answers or has it got to be done with a maple graded question.

Regards

Jim

ps below is the text file it needs to saved and then uploaded.

qu.env.validTest=

false