Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

I would like to know if it is possible in an external program (C or Python) to create a Maple function ( Not a one liner, maybe a number of lines of Maple code ). Then call Maple to execute a separate Maple function and get the result back.

Someone asked how to create this in Maple. 

I'm trying to use Maple to assist me in my homework.  To me, TI & MsMath are more intuitive than Maple, however, i have a Maple license.  That said, how do i specify an initial condition while trying to solve an ODE using dSolve?  For TI, i would enter:

deSolve(x’=x/25 and x(0)=20,t, x)

... and be done with it.  I suspect that i have to use diff() to assign x/25 as the f(x) of y'.  However, how do i specify the initial condition?

Here is a quick question - Is there anyway to enable full screen mode for Maple on a Mac OS X? I'm currently running Mountain Lion with Maple 16 and will be doing some screencasts and would prefer not to have the menu bar in the videos.

Hi,

I have an inverse kinematics model for a double inverted pendulum. There are multiple solutions for each joint angles due to symmetry and I have to choose the appropriate ones. I thought I can use the previous choices and compare them with the current multiple solutions, so I could choose the ones which are closer to the previous ones. However, since the double inverted pendulum moves in in both region at the equilibrium, this aproach does not work. Could you advise...

I watched a webinar by Dr. Robert J. Lopez, titled "Algebra, Trig, and Precalculus Math – All by Syntax-Free Maple".

In it he says he will give his email at the end if anyone wants the worksheet he is using during the webinar.  

I don't think he ever gave his email and, as a Precalculus teacher, I would really like the worksheet.  Please advise.

Hello all,

I'm trying to evaluate the integral (on Maple 14):

int(lambda/(A+B*lambda)^2,lambda=0..1) assuming A::positive, B::positive;

Maple cannot evaluate the integral, but returns the function call.  However, if I try to evaluate this in Mathematica, which I also have access to, it can evaluate it.  (The result is -(B+(A+B)ln(A/(A+B)))/B^2(A+B), if anyone is interested.)  I was wondering if there's something I'm doing wrong with the...

Hello. I tried to plot simple functions in MAPLE 16 and received this message:

Error, (in plot) unknown optional arguments [true]. I am not sure what the problem is and would appreciate any help. I have included an example below. Thanks.

 

> with(linalg); with(plots);
> plot(cos((1/2)*x)+sin(2*x), x = 0 .. 4*Pi);
Error, (in plot) unknown optional arguments [true]
>

#hi guys i have a new challenge. and i need your help again, my problem is to map a  piecewise function and #evaluate  with a matriz. thus 

A := LinearAlgebra:-RandomMatrix(2, 3);
B := piecewise(a+b < x, a.x+b^2, a+b < x and x < a^2+b, x^2.b+a.x);

A := convert(A, listlist):

#this is my last try to do that.

LL := map(((proc (a, b) ->( a+b < x, (a.x+b^2)/(a+b), a+b < x and x < a^2+b, x^2.b+a)@op), %):

#i...



restart; with(Student[NumericalAnalysis]); with(PDEtools, casesplit, declare); x := .5; a := 1; b := .5; d := 1; Q := 2; omega := .4; h1 := 1+a*cos(x); h2 := -d-b*cos(x+omega); F := Q-1-d; de := diff(alpha*f(y), y, y, y, y)+G*(diff(theta(y), y, y))+B*(diff(phi(y), y, y))+6*beta*(diff(f(y), y, y))*(diff(f(y), y, y, y))^2+3*beta*(diff(f(y), y, y, y, y))*(diff(f(y), y, y))^2 = 0, diff(theta(y), y, y)+Nb*(diff(theta(y), y))*(diff(phi(y), y))+Nt*(diff(theta(y), y))^2 = 0, diff(phi(y...

Hi 

I have a big maple sheet on 1000+ lines writing in 2D math in maple 16 that does som calculations on data sets. The sheet can do calculations on 1 data set at the time so I would like to reuse this sheet i a loop. So far I have not found a solution to get a do loop to work over several lines/inputs in a way similar to:

> for i from 1 to 10 do
> exp1
> exp2 
....
> exp1000+
> od:
Does anyone know how this can be done? 

Program:

restart;

printlevel:=3:

for a from 3 to 30 do

   for b from 23 to 30 do

       for k from b to 30 do

         for d from 4 to 30 do

            for e from 10 to 30 do

  big:=max(sqrt(a^2+b^2), sqrt(k^2+d^2), b+k,e,d+e-a):

  small:=min(sqrt(a^2+b^2), sqrt(k^2+d^2), b+k,e,d+e-a):

I have a somewhat time-consuming numerical integration which is needed for many different parameters so I'd like to parallelize the various integrations. Threads:-Seq should be just the ticket for this; so I write:

respr128:=[Threads:-Seq(evalf(Int(S(ener,Ecrit)*rangeexp(amp,depth/4,t0[128]),ener=0.001..10*Ecrit,method=_d01ajc,epsilon=1.0e-5)),depth=1..36)];

The functions S and rangeexp are defined thus:

S:=(omega,omega_c)->(9*sqrt(3)/(8*Pi)*omega/omega_c...

restart; b := 20; de1 := diff(f(eta), eta, eta, eta)+f(eta)*(diff(f(eta), eta, eta))+1-(diff(f(eta), eta))^2+k*(f(eta)^2*(diff(f(eta), eta))-2*f(eta)*(diff(f(eta), eta))*(diff(f(eta), eta, eta))) = 0, diff(theta(eta), eta, eta)+Pr*f(eta)*(diff(theta(eta), eta)) = 0, f(0) = 0, (D(f))(0) = 1, theta(0) = 1, (D(f))(b) = 0, theta(b) = 0; d1 := subs(Pr = .5, k = 1, [de1]); d2 := subs(Pr = 1, k = 1, [de1]); d3 := subs(Pr = 1.5, k = 1, [de1]); d4 := subs(Pr = 2, k = 1, [de1]); da1 := dsolve(d1, numeric...

Hi maplers

I was wondering if it is possible to change default document template and startup code?

/Delkrak

First 1553 1554 1555 1556 1557 1558 1559 Last Page 1555 of 2223