MaplePrimes Questions

I found the below text here :  scienceblogs.com/goodmath/2008/07/back_to_math_solving_zerosum_g.php

My question is how can I set up this problem in Maple ?!

The objective function should be: min(E(H1), E(H2), E(H3))
constraint:  Σpi=1, and ∀i: 0≤pi≤1.
solution: p1=0.57, p2=0.17, p3=0.26.

Hello,

I have an expression y, it comes from a calculation. I would like to simplify the argument of arctan in the expression using Maple. (This can be a part of a complicated expression, so I 'd like to automatize this procedure).

Assumptions: s0>0, w>0

y:=cos(w*t-arctan(2*s0^3*w, -s0^2*(-s0^2+w^2)));
 

Thank you for your help in advance.

 

 

 

Is there already a command to convert a higher order DEQ to a set of first order equations? Coeffs may be not neccessarily constant or polynomial in the independent variable. Example:

y'''-2*y''+x^2*y'+sin(x)*y-1=0

should convert to

X'=A*X+B

with A,B matrices and X,X' vectors of length 3
 

How do I make a phase plane diagram in Maple given the system needs to be solved implicitely? It's the implicit solving that is throwing me the curve ball....Any help is greatly appreciated! Thanks,

Nathan

Hi,

I am given the differential eqn : 4x'' +3x'+kx=0  with initial conditions  x(0)=0 and x'(0)=1

then I'm asked to:

display a Hooke's constant k>0 such that the solution x(t) is under-damped. Check that    x(t)=0  for infinitely many t>0. Display the exact solution x(t) obrained by maple methods.

I have this coin toss (see attached pdf and maple worksheet for further details)

"A fair coin is tossed, and the result is shown to player one. Player one must then decide
whether to pass or play. If player one passes, then he must pay player two $1. If player
one plays, then player two (who does not know the result of the coin toss) may either pass or play.
If player two pass, then he pays player one $1. If player two plays and the coin comes up heads,
then he pays player one $2. If player two plays and the coin comes up tails, then player one
must pay him $2." 
 

 

The objective is to determind the optimal strategy for player1. If we defined:

Action2- Play on heads and Play on tails

Action4 - Play on heads and Pass on tails

Then player1 should select Action4 67% of the time and Action2 33% of the time.





The problem is that I cant confirm such result though simulation. Does anyone have any code that works ?

 

Download 8342_Coin Tossing with Bluffing (winston).pdf
View file details

View 8342_A Coin Toss Game with Bluffing-2.mw on MapleNet or Download 8342_A Coin Toss Game with Bluffing-2.mw
View file details


 

hi!

two questions for the most expert among you:

question 1)

i want to evaluate a function A in a point identified by a number of variables that i have already numerically found from the solution of a sistem (let's say my solutions are S:={B=0.01, C=0.2, D:=0.3} ) but A also depends on another variable (Z) to which i want to assign a value

so i need to write eval(A,S) but also considering Z and it seems that eval(A,{S,Z=1}) doesn't work.

how do i tell maple to compute A considering both the solutions in S and Z=1?

question 2)

Hi:

exponentiating a matrix seems very slow. Consider this:

with(LinearAlgebra):

M:=RandomMatrix(10,10, generator=0.0..1.0):

st:=time():
MatrixExponential(M, -I*t):
time()-st;
                                   17.251

the same code takes ~0.1 second in MMA.

Any ideas why the following is giving me an error message?  Maple 14 WinXP 32 bit

restart:


with(DynamicSystems):


sys:=TransferFunction((0.04798*z+0.0464)/(z^2-1.81*z+0.9048),discrete=true,sampletime=0.1);

PrintSystem(sys);

Here is my problem. I have some data in excel format organized in three columns of x, y, z values. I am able to import the data in maple via the assistant tool and create a 3d surface plot. Now I would like to create a 2d contour plot on the x-y plane and possibly put the 3d surface and the 2d controur plot together. Do you think this is doable without changing the data format? I have looked for other posts, but none of them seems to highlight the data format problem. Thanks in advance, regards, Man

I have a dataset list of points, representing location x,y and one for depth z. 

x:=[...]
y:=[...]
z:=[...]

What command is best for plotting a 3d surface out of those points?

All:

How do I make a 3D plot of a volume that is created when a planar surface is extruded in a direction that is peripendicular to the surface? 

For example, a plot of the volume that results when the region between x^2 and the x-axis from x=0 to x=2 is swept vertically in the z direction 5 units. 

Thanks,

Phil

Now I am using a method that kept trying polynomial to check whether it is primitive. This method works fine for not very large Galois field. But for large one, like GF(2^1024) or GF(2^2048), it is pretty slow. Is there a way to quickly find ONE primitive polynomial in GF(2^1024) or GF(2^2048)? Just one, not too many. Thanks Gepo Method I am using: findprim := proc (n, deg) F := NULL; i := 0; while i

Hi,

I try to calculate a contour integral(in fact it is the contour integral defined in the principle argument theorem) with a function that was given in my earlier entry here

y:=2.0;W:=(2^(z+3/2)*Pi)/(GAMMA(-z/2)*GAMMA(1/2-z/2)):V:=1.0;
  f:=1+((abs(V))^2/W^2)*(CylinderD(z,y)^2)*(CylinderD(z,-y)^2-CylinderD(z,y)^2);
 

I try to use this f in this contour integral as:

phi:=t→exp(I*t);

g:=(diff(f(phi(t)),t)/f(phi(t))) * diff(phi(t),t);

here I give f ` (z)/f(z) is g. And

 

Hi

I am trying to define a funciton I'd like to call approx3f that calculates the taylor expansion of a function f(x) around a point "a" up to 3 terms.  So i want this function to be able to recieve a funciton f(x) and a parameter "a" as its input.

I wrote this:

approx5f :=(f,a)-> f(a)+f'(a)*(x-a)+1/2*f''(a)*(x-a)^2

but i think my definition is wrong cuz it doesn't work.  How can i make maple understand f is a function and then input "a" in it and its derivatives.

First 2003 2004 2005 2006 2007 2008 2009 Last Page 2005 of 2431