Maple Questions and Posts

These are Posts and Questions associated with the product, Maple
The fact that animate uses subs when replacing the animation parameter with a number in the animation range can cause problems when the expression to be animated is only evaluated when the animation parameter is replaced by a numeric value. This is shown in the simple example below My suggestion is that in the procedure `plots/animate` the three subs's are replaced by eval's. Is there any problem with that? Preben Alsholm The following does not work at all, apparently because animate uses subs instead of eval in 3 places, lines 29, 43, and 64 (using showstat(`plots/animate`).
Hi,

I had an issue where I wanted the quotient of two integers a and b; the quotient q from the division algorithm for a/b which finds a = b*q + r, 0 <= r < b

I was not sure how to obtain it. Since,

a := 7;
b := 3;
q := a / b; # returns fraction 7/3

Received some help from G. A. Edgar from Ohio State and Joe Riel from Maple; who clued me into the use of 'iquo' to obtain this.

a := 7;
b := 3;
q := iquo(a,b,'r'); # q = 2, r = 1

I was experimenting with floor(a/b), but I am sure this is more efficient (no conversion between fraction and integer);

There is 'irem' which just determines the remainder from integer division. The 3rd argument in iquo is optional ... and returns the remainder from the division.
How do I get Maple to show the old-fashioned, step-by-step solution of a a problem. I have tried to find this in "Help" but Maple's help is so disorganized as to be rather UNhelpful.
Good morning Maple experts, When I use FromMma() to the following expression: Test1 := ( T = {1, 2, 3}; Clear[v]; v[{}] = 0; v[{1}] = 1; v[{2}] = 2; v[{3}] = 3; v[{1, 2}] = 4; v[{1, 3}] = 5; v[{2, 3}] = 6; v[T] = 19;) I got only Test1:=T:=[1,2,3] The function I used was FromMma(`Test1:=( T={1,2,3}; v[{}]=0; v[{1}]=1; v[{2}]=2;v[{3}]=3;v[{1,2}]=4;v[{1,3}]=5; v[{2,3}]=6; v[T]=19;)`); 1. Where is my mistake? 2. What are the equivalent expressions in MAPLE? .. How may I write it without using MmaTranslator? Many thanks for the help!
How do I get the data from a 3d plot in maple 9 to a .txt or .dat file so I can plot it in origin or whatever?
When I click the "Save" or "Save as" options in my maple work, nothing happens, I can't save what so ever, does anyone else have this problem and if so, how do I fix it?
On page 121 of the 2007 edition of the Maple 11 Introductory Programming Guide in section 3.6 Exercises, problem 3, it says: "... Find the inverse of (a*b)/c+((a-d)/(b*e))*I) in standard form, where a, b, c, d and e are real." Here is my failed attempt: View 4937_Problem_3.mw on MapleNet or Download 4937_Problem_3.mw
View file details TIA
I'm trying to do symbiolic manipulations to define new procedures but I have trouble figuring out how to achieve my goal. The context is as follows: We have a set of ODEs df/dt = R(f(t)) where f(0) = x. Here f and x are n-dimensional vectors with components f[i], x[i], and R is a vector valued function with components R[i]; t is time. Example: R[1] := proc (x::Vector) x[2] end proc; R[2] := proc (x::Vector) -x[1]*(1+x[3]^2) end proc; R[3] := proc (x::Vector) x[4] end proc; R[4] := proc (x::Vector) -x[3]*(1+x[1]^2) end proc; Now, the Liouville operator is defined as L := proc(F::algebraic,a::list(algebraic))
How do I get maple 11 to graph the surface and the horizontal tangent plane (same graph). The function I am working with is z=3x^2+2y^2-3x+4y-5 the point would be (1/2,-1,-31/4) I am a new user, so if you could take it step by step, that would be very helpful. Thank you, Jerry
Hi, let's say i want the Integration Tutor show me how to integrate a function. Sometimes i don't know what the next step is, so i click the get-hint button. When it says "can you do a change of variables?" then i sometimes can't because i still have no idea. So i click "next step" and the result is shown. But i want to know what the substitution actually was, because it't not always obvious. But Maple doesn't tell me, for example, "t=2x has been applied" or similar. What to do ?
Hello Maple friends, I have a loop like this: A := array(1..10); for i from 1 to 10 do A[i]:= [ i, i^2, evalf(i^(1/3))]; end do; print(A); Nevertheless I dont know the following things: 1. How may I format in the way that in the third column of my array I see only 3 decimals? 2. As my matrix "A" is very big.. it is this the best way to avoid memory problems or there is some way to reduce this problem? Thanks in advance for any help! Jean
Hello Maple community!

As a part of a more complex (global) optimization problem I have a simple trigonometric parametrization of a classical probability distribution, i.e. just a list of positive number that sum up to 1. For test purposes, I take now one arbitrary element, p, of that probability list and use it as a target function for an optimization. Of course, one expects that one will find suitable parameter sets for minimizing/maximizing p. So here is my simple target function for the case of N=10 probabilities (requiring N-1=9 parameters):

objective := proc(x1, x2, x3, x4, x5, x6, x7, x8, x9)
I have found a very interesting physics problem which describes the motion of an airplane, it is a very simple math model. We use only two coordinates, x(t) and y(t), t is the time. The airplane starts at the point (0,a), a>0 and airport located at the origin (0,0). It leads to the differential system ( v0, w>0 are given ):
sys_ode:=diff(x(t),t)=-v[0]*x(t)/sqrt(x(t)^2+y(t)^2), diff(y(t),t)=-v[0]*y(t)/sqrt(x(t)^2+y(t)^2)+w;

   d                v[0] x(t)         d                v[0] y(t)          
  --- x(t) = - --------------------, --- y(t) = - -------------------- + w
   dt                         (1/2)   dt                         (1/2)    
I am currently working on a project that would involve students integrating a standard normal cumulative distribution function in Maple (essentially an erf function). This a simplified version of what we're attempting to integrate: CDF(a*ln(x)+b) from x=0..S. This should yield a closed-form solution like S*CDF(stuff)-K*CDF(other stuff) Of course, if one attempts to integrate the original CDF the integral will not evaluate. Is there a way around this, or will Maple simply fail to integrate erf(ln(x))? Thanks, Dan
Hi, I've been using maple10 worksheets under os x, setting the default zoom to 75%. This is fine. However, I've recently migrated to a linux system. Now, if I display a matrix under maple10 (or maple11) with 75% zoom, all of the spaces around the entries of the matrix are lost! This makes for unreadable 2d output. This is also true under 50% zoom (which is already unreadable) and if I change the default zoom in my .maple10rc file to _anything_ less than 100%, the same loss of spacing results. Does anyone else find this to be a problem. Sure, I can work with 100% zoom, but if there's a s
First 2102 2103 2104 2105 2106 2107 2108 Last Page 2104 of 2224