Questions tagged [maple]

For questions involving the application of the program Maple to mathematics.

NOTE: questions which focus primarily on the program Maple and not on its applications to mathematics are not appropriate for this site.

Maple is an interactive engineering and scientific programming environment, as well as a high level programming language, from Maplesoft.

The following links can be useful:

755 questions
1
vote
2 answers

Help with grouping terms (maple)

I want to collect "coefficients" of polynomial over $x$ in some power, e.g.: $p:=a \cdot x^3 + b \cdot x^2 + c \cdot x + d$ $collect(p, x^2) = (a\cdot x+b)\cdot x^2 + (c\cdot x+d)$ and extract those two "coefficients" to some…
1
vote
1 answer

Identify terms in an expression (Maple)|

How hard is to program that given a symbolic expression like $$ f = x^2 + y^2 + k \, , $$ I could teach to Maple that $x^2 + y^2 = r^2$ and then it expresses f like $$ f = r^2 + k \, ? $$ Of course I want to implement it for more difficult…
dapias
  • 215
1
vote
2 answers

Evaluate 'symbolic'/expanded in Maple

When I write 'x(t)'=c[1]*exp(0*t)*(cos(omega*t)*<0,1>-sin(omega*t)*<-1,0>)+c[2]*exp(0*t)*(sin(-omega*t)*<0,1>+cos(-omega*t)*<1,0>); in Maple, it gets evaluated and outputted in a 'concatenated' vector although I rather want it to output it as I…
Jamgreen
  • 809
1
vote
1 answer

Assign variables in Maple

I have an equation $$ y = 2 x+400 $$ Can I with Maple multiply the slope ($\alpha=2$) with a factor $k$ without affecting the intersection ($\beta = 400$)? Can I eventually let Maple assign $\alpha$ and $\beta$ by letting Maple know that the…
Jamgreen
  • 809
1
vote
2 answers

Error In Assigning Values to Two-Variable Function

Please migrate this question if it is not appropriate for Math.SE (I fear it is not). In the following snippet, $f(i,j)$ is a procedure that compares the value of $i$ and $j$ before deciding what to return. The code sum(sum(f(i, j), j = 1 .. 5), i…
Austin Mohr
  • 25,662
1
vote
1 answer

Running command line Maple script interactively

I'm connecting over ssh to a machine running Maple. Is there a way to run a script, let's say derp.mpl, such that after executing the script Maple is still running? Something perhaps analogous to running python like this: python -i derp.py
C-o-r-E
  • 135
1
vote
1 answer

Maple Help format output collect terms with same coefficients and multiple variables

I realize this may have been asked before, however I have no idea what to search for specifically, since the topic is so generic it returns so many results that I cannot find what I am looking for. eqn3:=3.9024*x+3.9024*y; How can I get Maple to…
1
vote
1 answer

How to use Maple's LLL Function to Break a Merkle-Hellman Knapsack

This question probably isn't as hard as the title might imply. I'm working on my crypto final project and have decided to use Shamir's method (using the LLL algorithm) to break knapsack using Maple. I'm trying run Maple's LLL algorithm on the…
jkovba
  • 113
1
vote
1 answer

Complex solutions of equations in Maple

Is it possible to compute all complex solutions of the equation $$ e^z = 1 $$ in Maple? That is, I need Maple print all solutions $z=2\pi k I$. What procedure do I have to use? Thank you very much in advance!
1
vote
2 answers

How to compute sum with non consecutive indices in Maple?

Suppose we need to compute the sum in Maple, $ \sum_{i = 0}^{10} 2^i $, We can use the command, sum(2^i, i = 0 .. 10) Now, what if the indices are not consecutive like i = 0, 1, 2, 3, 4, [no 5], 6, 7, 8, 9, 10? I tried sum(2^i, i = {0 .. 4, 6 ..…
1
vote
1 answer

Parametric curves in maple

I know how to plot a parametric curve in Maple (18), but is it also possible to 'define' the parametric equation? I.e. I have to find the intersection of: f:= t-> sin(t); g:= t -> 0.5*sin(2*t); and y := x -> x/2
1
vote
1 answer

How to substitute an array in a given expression in Maple?

Given e.g. f := a[1]*a[2]+a[1]*a[3]+a[2]*a[3] Now we want to substitute a[i]->i, I tried applyrule(a[i] = i, f) applyrule(a =[seq(i, i = 1 .. nops(a))], f) and replace "applyrule" above with "subs" and "algsubs" commands. But none…
Osiris Xu
  • 173
1
vote
1 answer

Find intersection of two functions in Maple

I have two functions $f$ and $g$ defined as: $$f := \operatorname{Spline}(\operatorname{pointsBW}, t)$$ $$g:=x \rightarrow \frac{1}{x}\int_0^x f\;dt$$ where $f$ is a functional form for a set of data points. I am trying to find the intersection of…
1
vote
1 answer

Order of terms in simple expression in Maple 18

If I write a[n-1] in Maple 18 it changes the output to $a_{-1+n}$ and 4*c[1]-6*c[2] is changed to $-6 c_2+4 c_1$. And this happens to me in many different expressions. Is it a setting in Maple which I can change? Why is it reordering my terms?
Jamgreen
  • 809
0
votes
1 answer

Using Maple to find the normal vector

I'm trying to find the normal vector to the level surface $xyz = 1$ at an arbitrary point $(a, b, c)$ with(Student[VectorCalculus]); PrincipalNormal(PositionVector([x, y, 1/(x*y), x, y])); Any idea what's wrong with my code? I keep getting "could…
Jack
  • 764