Hello, 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 anyone has any suggestions, that would be of great help.
I tried to do a Monte Carlo simulation with the Shuffle command from the Statistics package.
Unfortunately the distribution of the random sample differs significantly from the expected distribution even for large n.
Here is what I did:
I'm trying to put together an analysis of a damped harmonic oscillator for a tutorial and I can't get the answer into the form I'd like. If you have a complex exponential, you can easily express it as a sum of a sin and cos using the convert function with the 'trig' option. If you have a term in the exponent that always evaluates to complex value because of the assumptions on your variables, however, it will always write the expression in terms of sinh and cosh. Is there any way to force Maple to put the solution in terms of sin and cos?
Originally x, renamed x~:
Involved in the following expressions with properties
-LambertW(_Z12,abs(x)) assumed RealRange(-infinity,Open(0))
-LambertW(_Z18,-abs(x)) assumed RealRange(Open(0),infinity)
-LambertW(_Z20,-abs(x)) assumed RealRange(Open(0),infinity)
-LambertW(_Z22,abs(x)) assumed RealRange(-infinity,Open(0))
-LambertW(_Z24,abs(x)) assumed RealRange(-infinity,Open(0...
with convert and FormalPowerSeries one can find power series of some functions. WIth the function int one can sum / make integrals of expressions.
I am new to Maple and have tried finding the sum function of the product of two power series :
in both cases sum of n from 0 to infinity
how to program Maple to find the sum function of f(x), g(x)
and g(x)*(f(x) ?
There must be an easy way to convert a line into math?
Sometimes you've gone to all the trouble to type out a lengthy line of math to operate only to find out it's in text mode.
Is there a way to change it over to math? I've tried highlighting and F5 but that didn't work. Are we stuck to having to retype the line(s) over again?
Can someone explain how to convert an expression of the form "a*cos(x)+b*sin(x)" to "c*cos(x-ph)" using the formula c=sqrt(a*a+b*b) and ph=atan2(a,b) ? I haven't been able to get Maple to do it.
I want to obtain the exact (symbolic) solution of
240*t^3 + 144*t^2 - 135*t -52 =0
in the form a+ b*I, where a, b are (symbolic) real numbers.
It is possible if I understand Wikipedia well.
"solve" gives "RootOf" and the "convert(......, radical)" gives quantities such as
(9522 + 45*I* squarerootsymbol(226511))^(1/3)
Testing a numerical implementation I want to access data, which are
suggested as maximal errors through plotting (with care) to examine
that in more detail (so plotting is considered just a help)
For univariate functions I am aware how to look into data pairs for
the command plot.
My function is bivariate and real valued.
P:= plot3d( f(x,y), ...) lets me save the result and
arr; Arr:=convert(%, Matrix);
Is there already a command to convert a higher order DEQ to a set of first order equations? Coeffs may be not neccessarily constant or polynomial in the independent variable. Example:
should convert to
with A,B matrices and X,X' vectors of length 3
I tried to define the following procedure, to shuffle, or randomize a stack 'S':
Unfortunately this procedure does not return a stack type, i.e. it transforms S to something different.
Anyway, I need a procedure (or maybe something more efficient), which randomizes a stack and replaces the old stack for the new
randomized one (i.e. S is randomized afterwards and still of type 'stack').
I would like to accesse the value of a slider in a Maplet, and use it in a computation in a procedure.
My problem is that using Get(Slider1) does not give me a real number to work with. What kind of object is the value of Slider1, and how do I convert it into a real number?
I have an ODE system called RedSys which is below and incons1 which is its initial condition.
When I want to solve this system by dsolve numeric with this command:
dsolve((convert(RedSys, set)union incons1), numeric, implicit = true);
I face an error which says :
system should be linear in leading derivative. However when check I do not see any non linearity.
could you please let me know what should I do to solve this system by dsolve/numeric?
Thanks so much,
not being used to work with Maple, I cannot figure out how to solve the following problem.
I want to verify if the positive semidefiniteness of a given 20x20 matrix A (depending on 10 real variables x_1, ..., x_10) implies the positive semidefiniteness of another 4x4 matrix B (depending on the same 10 variables). The entries of each matrix are linear in the given variables, at most depending on 3 variables. The 20x20 matrix is rather sparse.
What I tried is the following: