Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

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.

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.

Is there a general template to follow for extracting scientific data from a website? 

Hi all,

I was wondering how I would introduce the generalized hypergeometric function command in maple ? This is  like HypergeometricPFQ[ {{1 - \[Nu]/2}, {1}, {1, -(\[Nu]/2)}}, {{2, 3/2}, {}, {1 - \[Nu]/2}}, z^2/2, z^2/2]  in Mathematica but when I try to give it in maple I get error messages...

Thanks!

Hi guys! This is my first question in this forum. I'm a newuser so forgive me if my questions are really basic.

I wrote a non linear system with a number of unknowns and I want to find solutions for a set of values attached to x.

Let's say x:=[0.1, 0.2, 0.3]

I know I have to redefine x:=i and write a "do" command like

for i in x_   do s(i):=fsolve({independent equations},{unknowns to be numerically found})

and i have three sets of solutions s(0.1), s(0.2) and s(0.3)

i want to get compute the extended Euclidean of two polynomials and now I am using gcdex, but it takes too much time for big polynomial. For example: alias(a=RootOf(1+z^31+z^23+z^11+z^7+z^2+z^32)); gcdex(x^32,x^32+(a^15+a^11+a^6)*x^31+(a^13+a^10+a^3)*x^23+(a^11+a^7+a^2+1)*x^11+x^7+a^13+a^10+a^3+a^1+1,1,x's','t'); Is there a better way to do this? Thanks Gepo
First 1815 1816 1817 1818 1819 1820 1821 Last Page 1817 of 2224