MaplePrimes Questions

hi I'm new to maple and I want it t perform some filtering

I want it to select a nummber in array within given condiitions

> t := [1, 4, 9];

>

> for i from 1 to 3 do if t[i]>2 and t[i]<t[i+1] then  s:=t[i] else s:=t[i]+7end ;
print(`output redirected...`); # input placeholder
Error, unterminated loop
Typesetting:-mambiguous(for i from 1 to 3 do  if t(i)gt2  then s

I have a function with one variable which I would like to plot the Kurtosis (statistical term) of (for a specific range). The purpose is to produce a plot which will show the 'peakiness' of the curve.

Say y = x^3 + 2*x^2 + 3*x;

For the range, say x = 0..10, I would like to plot the kurtosis (Maple function is also called Kurtosis). I have been able to do this numerically with a matrix of data but am unsure how to do this in Maple.

Your assistance is much appreciated.

Hi, 

I am relatively new to Maple and I am seeking an efficient way to create a probability histogram for a discrete probability distribution. For example,

x:      1     3   5    7

p(x): 1/8 1/4 1/2 1/8

 

I would like rectangles with height corresponding to the probabilities with bases centered at each x value, allowing for the possibility of gaps in the distribtuion.

 

What is meant by events? I have seen this error numerous times.

   "Simulation problem: maximum number of event iterations reached (100) at t= ...."

How do I model so that I can avoid them?

http://www.solitaryroad.com/c681.html

refer to this link, dsolve the differential equation can not get generating function.

would you mind demonstrating the steps with maple?

I'm having the problem reported here back in 2008 and more recently in 2010:

http://www.mapleprimes.com/questions/39313-Postscript-Plot-Sizing

http://www.mapleprimes.com/questions/96487-Graphics-Output#comment96501

I'm not sure when the axiswidth, axisheight options of plotsetup got broken for me. I'm not certain, but it looks like I was able to control the width and height of my plots not so long ago (version 14 or 13) or am I mistaken and this bug,...

hi,

I'm having trouble with the symbolic integration of a function with respect to time. The equation to be integrated does not only contain time but also some variables which are time dependent. The equation is:

M = z21 * sin( z5 * t)2

this has to be integrated with respect to time however z1 and z5 are also time dependent as they are states of a state space model:

z1

Suppose the loop goes something like:

a[1] =3;
a[2] = 2;
a[3] = -2;

for i from 3 to 60 do

a[i+1] := a[i] + 3*a[i-1] + 2*a[i-2];

end do:

 

a(60);

 

I get some long expression, and then I have to do subs(....,%); to evaluate it at the already defined values and get the answer. Why isn't it evaluating it with the already defined initial values?

I am a Maple 12 user (under window 7) and now trying to solve a system of equations with PHCpack. Somehow it does not work. I do follow steps provided in http://www.math.uic.edu/~jan/. The error message shows up as follows;

> restart;

> setPHCloc("C:\\phcPACK");

> f := [x*2 - x*y + 2, x^2 + y^2 - 1]:

Please see attachment.

Suppose particle A moves in counter-clockwise circular motion about the origin with radius 3,
 completing one revolution every time interval.  Particle B is in counter-clockwise circular 
orbit  about particle A with radius 1/2, completing 12 revolutions every time interval.  Find
 a  possible  parameterization of the path of particle B for one complete time interval.  
Animate your solution.  

I am stumped as to why LinearSolve and BackwardSubstitute(GaussianElimination) are giving me different answers (the latter gives the correct answer).  Here's what my maple session looks like:

 

Any input would be appreciated.  Thanks.

1. can it have simple solution for convert(taylor(Qx*exp(z), z=0,5), ratpoly); as my solution have     hypergeom([-1/2i, ....?

    for example where Qx = x/m, if m is also increasing from 0 to 5 by one in each term

    How to write these command?

    is it sum(Qx*z^m/m!, m=0..infinity); but convert this result to ratpoly result in error, if exp, it will have summation,

 

To answer this question you need to create a Maple function using Maple's arrow (->) notation.

Your function should take a Maple list of real numbers as its input and return the smallest cosine from that list.

Enter your function in the box below.

Your Answer: op(1,sort(map(cos,x)))

Comment: No solution is given for this question.

Can anyone tell me how my answer is incorrect, or more importantly, what the correct answer is?

I'm trying to use maple to solve for the first 5 terms for a sequence, and each term is the term before it with some new value added to it, I'm trying to define this function correctly in maple and cannot find a way to do it. I need to have it in a form where it can solve for any term so I need to get it into a general form solvable for any value.


Basically the sequence I'm trying for maple to use correctly is this:

An= (sqrt(3)/4)+((sqrt(3)/4)(2/3)

erec :=  mu Q(n + 1) - (n + mu) Q(n) + n Q(n - 1);
with(gfun);
opoly := rectodiffeq(erec, Q(n), f(z));


Error, (in gfun:-rectodiffeq) invalid input: getname expects its 1st argument, yofz, to be of type function(name), but received (z(z)*mu(z)*_C[0](z)-mu(z)*_C[1](z)*z(z)-mu(z)*_C[0](z))/(z(z)*mu(z)-mu(z))

First 1820 1821 1822 1823 1824 1825 1826 Last Page 1822 of 2430