maple

Maple and substrings

Maybe this is the wrong website to ask, but hopefully somebody knows... How do I break a string in Maple and store it in a list of substrings? i.e. my string is : "i love the weekends" and I want to break it into substrings of size 2... so i would look like this substrs; substrs = [[i ][lo][ve][ t][he][ w][ee][ke][nd][s ]] ...

Using Taylor Polynomials Programmatically in Maple

I am trying to use a Taylor polynomial programmatically in Maple, but the following does not seem to work... T[6]:=taylor(sin(x),x=Pi/4,6);convert(T[6], polynom, x); f:=proc(x) convert(T[6], polynom, x); end proc; f(1); All of the following also do not work: f:=convert(T[6], polynom); f:=convert(T[6], polynom, x); f:=x->convert(T[...

Grabbing the output of MAPLE via Python

How would I use the subprocess module in Python to start a command line instance of MAPLE to feed and return output to the main code? For example I'd like: X = '1+1;' print MAPLE(X) To return the value of "2". The best I've seen is a SAGE wrapper around the MAPLE commands, but I'd like to not install and use the overhead of SAGE for ...

Which one of C# and Java is more easy and fast when interfacing with Statistics/Simulation Softwares?

First, I know almost nothing about the interfacing of this type and this is the first time, I'm trying it out. I am looking to use one of the Statistics/Simulation software either Maple or Mathematica or R for calculations and use C#/Java to handle other areas like persistence and data collection and so on. Can you tell me which one of ...

joining dots of a scatter plot and create a line

How is possible to join dots of a scatter plot after plotting, and make a line from a dotted plot? ...

How do you flip an equation (exchange LHS with RHS) in Maple?

I have an equation which has been reduced to the form eqn1 := f(x,y,z) = T; Now I have another equation that involves T as a variable eqn2 := g(T,x,y,z); I want to replace T with f(x) in eqn2. If I had eqn1 in the form eqn1better := T = f(x,y,z); Then the following command would do what I want. algsubs(eqn1better, eqn2); So ...

maple 13 tridiagonal matrix help

i am trying to make a 100 x 100 tridiagonal matrix with 2's going down the diagonal and -1's surrounding the 2's. i can make a tridiagonal matrix with only 1's in the three diagonals and preform matrix addition to get what i want, but i want to know if there is a way to customize the three diagonals to what ever you want. maplehelp doe...

initial conditions in coupled systems

how should i write the initial conditions and solve two coupled differential equation? for ex. like: s1 := diff(n[D](t), t) = a-b*n[D](t)^2-c*n[D](t)-d*n[D](t)*n[T](t) s2 := diff(n[T](t), t) = b*n[D](t)^2-c*n[D](t)-d*n[D](t)*n[T](t) dsolve({s1, s2}); where a,b,c,d are constant coefficients. ...

Maple 13 variable assignment does not work

Please refer to the screenshot. I assigned Qswap to a matrix and when I try to view Qswap, it has nothing assigned to it! Help will be appreciated =) ...

assigning in system of differential equations

hi every one! when i solve numerically a system of two differential equations: s1:=diff(n[Di](t), t)=...; s2:=diff(n[T](t), t)=...; ics:={...}; #initial condition. sys := {s1, s2, ics}: sol:=dsolve(sys,numeric); with respect to "t",then the solution (for example)for "t=4" is of the form, sol(4): [t=4, n1(t)=const1, n2(t)=const2]. ...

Help importing .pdb file into Maple

I realy know nothing about Maple, so any help would be nice. I am attempting to import a .pdb file into Maple, as part of converting some Mathematica code to Maple. I need something that that can accomplish something equivalent to the Import command in Mathematica. I have tried using readdata, ImportData and fopen with little success. If...

Plotting 3 inequations with 3 variables in maple

I need to plot this in maple 3x1+y+z<=180 x<=12 x+y+4z<=190 How can I do a plot in Maple? I'm using Maple 13 ...

Factoring matrices into elementary matrices

Is there a package in MATLAB, Maple or Mathematica which does this? ...

Performing an integral from -infinity to infinity in Maple

Hey everyone, I'm trying to perform the following integral in Maple: simplify(int(a*x^2*e^(-a*x^2), x = -infinity .. infinity)) But instead of returning an answer, Maple just returns back the integral statement itself: int(a*x^2*e^(-a*x^2), x = -infinity .. infinity) In the prettier form though (with the actual integral sign, etc)...