Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

I use dsolve on a given system of ODE

sol=dsolve({sys_ode,ics},type=numeric,stiff=true);

and when I ask Maple to compute sol(1), I would like also Maple to display all the time points and the values of the solutions at those points that was computed to get to the endpoint=1 (starting from initial values in ics).

Any suggestions!?

Many thanks!

Hi,

I am trying to construct a vector field based on a large expression. Although I put cos(phi) at the end of the expression, written in 2-D Math, the expression gets automatically simplified to cos phi, without parentheses. That causes the command VectorField not to understand the end of the expression and fail building the vector field.

If instead I define the expression in 1-D math, it works perfectly. Like this:

 

Dear MaplePrime users,  I have got a very strange problem ( for me surely)  I am not a mathematician , and not a good Maple user :(((  When you can help me in solving this problem with Maple, you  are very appreciated. Thanx.

Problem:

a, b, c, e,   are constants

X, Y, Z, M, N, R  are time dependent  variables,

X(t)=  Xo- M(t);

Y(t)= Yo - R(t) ;

N(t)= M(t) + R(t);

Z(t)= Zo - M(t) - R(t) ;

new defined parameters,  K= b/a = e/c = X / M =  Y/ R

Hi there, I got a set of discrete Data as functions of 4 variables (x1,x2,x3,x4) . I would like to interpolate the data with respect to x2 and then get a continuous function f (x1,x2,x3,x4). Finally I would like to get the partial derivative of f wrt x2. How can I sort this out? x has the range [0,x0]. s is an arbitrary function of x. g is a function of (x1,x2,x3,x4) which is formed from solving the IVP numerically. x0:= 1/2: s:=x->x^2: sol:=(x2,x3,x4)->dsolve({y''(x1)-(x3^2+s(x1)*x4^2)*y(x1)=0,y(x2)=exp(-x2),y'(x2)=1/2},numeric,output=operator,range=0..x0):

A few years ago I wrote a tool, mgrep, for searching Maple repositories;  download mgrep.zip. The zip file includes the noweb source (mgrep.nw), however, it is missing some of the files needed to rebuild the documentation—I will add them later when I bring an old drive back online.  You should not, however, need to rebuild the documentation (mgrep.pdf) because it is included along with the shell-script (mgrep) and gawk file (mgrep.awk).  To use the tool you will need to install mgrep and mgrep.awk in a directory in your path.  The --help option prints a brief help page.

Here I use mgrep to partially explore a question that  acer poses, that, whether % may be usefully employed in a Maple procedure. A reasonable start is to see whether it is so used in the distributed Maple library.  First I go to the lib subdirectory of the Maple installation, then call mgrep to search maple.mla for all procedures that use % as a name

Hi
I want to find the syntax for below example:
 

e.g. a=9 and 9 is not a valid entry for parameter a, I want to print an error message like:

Value 9 has been entered for  parameter a is not valid

How can I do this?

I can calculate the probability of observing 5 heads after a 10 coin toss as:


n := 10:  p :=0.5 :  x := 5 :

ProbabilityFunction(Binomial(n, p), x);

                                0.2460937500


Now my question is how can I generalize this argument over time and with an Normal(0,1) process.

hi.

can i have a densityplot in 3d?

i want to plot a sphere.

i have a function f(r, theta) which is supposed to be the temperature of my sphere. can i plot my function f such that it is like a densityplot on my sphere? i cant seem to find the right command for this.

thanks!

I'm trying to write a program (see code below) that produces a circle with a sector identified by two radii and a small arc connecting the radii (to emphasize the angle, which I will later add a "theta" label to). The sector needs to be shaded, and I prefer not to have any axes showing; I think I can do some of this by right-clicking on the figure after it is rendered by Maple, but it seems to me that the code should be able to handle all of this as well. I will be using the resulting figure in a homework set that I am producing for a trigonometry class.

Could there be a useful performance gain if Maple were changed so that %, %%, and %%% did not function inside a procedure (proc) body?

Should one ever use % in a procedure? Would using it just be obfuscation where none is needed, or could it serve a special purpose?

While on this topic, how good or bad would it be to use a Standard GUI equation label inside the body of a proc that was entered in 2D Math?

acer

This should be a very basic question. Is there any explicit function or syntax of the commands that we can add a number to all elements of a vector or a matrix? I know with map we can do that but I doubt it is the proper one.

hi.

i have this function f(r,theta) which i want to graph in polar/cylindrical coordinates. but when i try to plot it, the coordinate system seems to be in cartesian because my horizontal axis becomes my values for r and vertical axis becomes my values for theta.

How can i plot my function f(r,theta) in polar/cylindrical coordinate such that r=0..1, and theta=0..2*Pi?

Hi, it seems I have an unusual situation and I have been unable to find a way to solve it. Hopefully someone can help. I have an overdetermined system; 14 equations, 4 unknowns. The unknowns are restricted to particular ranges (roughly 0 to 500).

Hi there,

ich want to create a Maple-package -- say Foo -- using Maple12 by using 'module()'.

This works OK for me and I can load it with

"with(Foo);"

Then a list of the (exportet) functions appears.

 

What code do I have to enter in order to display also a predefined message, ie. via printf? For example

"with(Foo)" ---> "You are proud user of the Foo-package!"

?

First 1897 1898 1899 1900 1901 1902 1903 Last Page 1899 of 2224