MaplePrimes Questions

Search Questions:

Latest Questions Latest Questions Feed

I googled everywhere for this and most results just tell me what diff and D does...


Basically I have a function, let's say


f:= x -> x^2

How do I turn the derivative of f into a function?


I tried


fprime := x -> diff(x^2,x)


But tihs just shows me diff(x^2,x), instead of x -> 2x

Starting with Maple 18, the Print to PDF feature caused the document page to be hard-aligned at the left margin of the page. Maple 2015 still seems to have this problem / bug.

Does anyone else have the same problem? Has a work-around been posted? Is a fix in the works after nearly 9 months?


Let M and K be given positive integers.

I struggle with how to write efficiently this formula in Maple,mainly because it sums over *pairs* of integers K1 and K2, with the given property that "K1+2*K2=K":




sum { M!/(M-K1-K2)! * K!/(K1! * K2)! * 1/M^K * 1/2^K2 : such that K1 + 2*K2 = K}

The "!" means factorial.

WHen I type:

I get nothing, a blank box. But if I change the code slightly, by squaring both sides, then it works.

What is the reason for this. I uploaded an image of the output:

Hi. I am having trouble with maples command "Cross product", i don't know why it doesn't work. Can anybody help me? This is a screenshot of the problem:

How to find the determining equation for a system of fractional differential equation using Maple 15?

This question is 99% similiar to an previously posted question, but this one has a little twist(s).


Here is the sample problem. Let's say I have the following equations


e1:=(a+b+1)x^2 + (a+1)*x^4 = 0;

e2:=(a-b)*x+ (a^2 - 1)*x^3 = 0;


One can immediately tell the system is inconsistent because on x^3, we have a = -1,1 but on x and x^2 we have a = -1/2

This is precisely the problem I am facing, my e1 and e2 will eventually get bigger (bigger as in the order of the polynomial will increase) and I keep facing inconsistencies.

However if I could find a way to code it so that I can ask Maple to solve only up to a certain degree it would be great. This will eliminate any inconsistency


For example, using the system I have here, the system is consistent up to order 2 (it will always start from constants and up to a certain power). So I will ask Maple to solve the above system up to order 2.

Here is a pseudocode I have been working on.


For i = 1..2 //this might be increased, but it will of course be finite and probably won't go past 10.

For j = 0..N

//N is the degree of polynomial

f[i]:= coeff(e[i],x,j);




//the above generates the equations, below will solve it


solve( { f[i], i=1..?} ,{a,b})


Note that the pseudocode assumes e[i] are expressions and not equations set to 0 (which is what I have). Is there an "un"unapply on maple?


edit1: have to sleep  (late where I am! Will check for responses tomorrow) thank you

In a local coordivates frame {B}, an arc whith center "coc" ,radius "radius" and angle between “alpha1” and “alpha2” can be plotted in XY plane of {B}. The coord {B} is in a Ref frame {O}. The homogeneous transformation matrix is “H”. How can I plot this arc in coordinate {O}?

solve 30a+75b+110c+85d+255e+160f+15g+12h+120i=800000 over the positive integers

how to export a plot with its points  (x,y) from maple to excel

Hello Everyone


I am new to Maple and I have to find the determinant of the following matrix


Matrix comprising of Bessel Functions whose determinant is to be calculated

Here k is a constant.


Can you please help me with it.


Thanks in advance.

g:=Groebner:-Basis([a-2.0*b,b-2], plex);

Groebner:-Reduce(a, g, plex); 

Error, (in content/polynom) general case of floats not handled

How to solve this problem simply?

now the equation is


initial condition: u(x,0)=1-(xsign(x)), abslute x<1,0 otherwise. Assume sign(x)=-1 for x<0, 1for x>0 

 Ut(x,0)=cos(pix), bslute x<1, 0 otherwise , he didnt give any B.Cs

so I would like to know the analytical and numerical sols, and plots for the wave at t=2,4

for Numerical:   delta x=0.1, delta t=0.025, range 0..4

Please how can Maple plot both analytic and numerical solutions on the same axes for this problem

U(x,t)= 2/3f(x+t)+1/3f(x-2t)+(1/3pi)(sin(pi(x+t))+(1/3pi)(sin(pi(x-2t)),

f(x)=1-x,abslutex<1, zero otherwise

2 3 4 5 6 7 8 Last Page 4 of 1159