Maple Questions and Posts

These are Posts and Questions associated with the product, Maple
Hi all I see it is very easy to define a simple function in Maple using -> But what if more than a single expression is needed and if local variables are needed ? Is there a way to put several statements and use local variables in a function definition ? For example to define a function that takes a list as it's argument and returns the arithmetic mean or the simple sum. Must such things be done with a procedure ? Thanks !

after differentiating a function that contains a product and summation using a counter i=1,2,...,n and j=1,2,...m    i got a result that contains things like these :-

sum from i1~=1  to  i-1    and  i1~=i+1  to  n

and i had in the function a variable z[i][j]  and in the result it became  z[i1~][j]

what does 1~ means ?

thankx in advance

Hello,

I have a lie algebra, e.g. sl2 or sl3. Elements of these algebra may look like  Qs, where x indicates a Generator of the lie algebra and 's' is a further index. On this latter index there are conditions, for example:

For all x and s with s>1: Qs = 0.

In addition, under the lie algebra commutation relations, 's' behaves for example as:

[ Qs, Qr] = Qs+r.

 

Consider the identity 4*cos(theta)^3-3*cos(theta) = cos(3*theta). Does maple know about it, or how to prove the identity, which is true by deMoivre's formula, with maple? The trig option for simplify seems not enough. Thanks.

How can I assign all diagonal elements to 1 for a matrix ?

Hi all I have > tst:=-(1-cos(p))/p^2+1/2*cos(1/4*p)^2*cos(1/8*p)^2*cos(1/16*p)^2: >plot(tst); which seems to work OK. However, this generates an error plot(tst,Pi..2*Pi); Warning, unable to evaluate the function to numeric values in the region; see the plotting command's help page to ensure the calling sequence is correct Plotting error, empty plot ...as does any other range I have tried. I guess it's something very simple, but if someone can point me in the right direction I would appreciate it !

I want to find a way that which results in that all variables in a procedure becomes local

ie  X:=proc() local All

I find it tedious having to specify all the local variables individually 

ie  X:=proc() local A,B,C,w,e,r,t,y,u,ui,io,w,,u,i,o.....eternity

Having been trained as a computer programmer, particularly in an Object-Oriented orientation, my inclination when declaring a variable is to add a line of documentation to it.  In C++, Java and other ASCII based programming languages this is oftern done with JavaDoc, Doxygen and other notational sytax in the comments.  For example:

the error is:  Error, (in PDEtools/_zn/get_zn) too many levels of recursion
 

and the detail is in the additionView 13857_2010.01.04.mw on MapleNet or Download 13857_2010.01.04.mw
View file details

why I can not get the result, how to solve it ?

Thank you.

This blog will contain postings documenting some of my mathematical travels. In particular it will chronicle my experiences and problems in learning maple and the mathematics I am studying along the way.
I'm very new to maple and I've been experiencing a few difficulties. One in particular is quite frustrating: when opening a worksheet in classic worksheet mode I get a message that it was created in an earlier version, and after clicking OK maple crashes. For example, with the document here: http://www.maplesoft.com/applications/view.aspx?SID=1404 I am using Maple 12. This problem does not occur in standard gui mode, only classic worksheet mode but for a variety of reasons I wish to use classic as much as possible. Thanks
Hi all Given the relation, x sin(xy)=x , and wishing to find dy/dx by implicit differentiation, the easiest and most obvious way is to cancel x and then arrive at the answer dy/dx = -y/x: > implicitdiff(sin(x*y)=1,y,x); - y/x (assuming x is not equal to 0 of course) But, what if we try this: > implicitdiff(x*sin(x*y)=x,y,x); sin(x y) + x cos(x y) y - 1 - ------------------------------- x^2 cos(x y)

(1 2) (23)=(1 2 3;2 1 3) (1 2 3;1 3 2)=(1 2 3;3 1 2)

how to calculate this ?

 

Hi,

How can we do sth like the below example:

L:=[1,2,3,2,4,6,5,0,9,0,3,4,4];
number of elements greater than 1 and smaller than or equal to 3

ans=4

for example

VerticalBar∣ VerticalLine

∈ this can be got by "in",and "Element" with Command Completion

I don't know why they are the same,but both appear in the same pallete or different pallete.

First 1871 1872 1873 1874 1875 1876 1877 Last Page 1873 of 2234