Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

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.

I would like to know if it possible in Maple 12 to efficiently compute recursive procedures with two variables.

A simple example would be: f(a,0):=1 for all a>=0, f(0,b):=1 for all b >=0 and f(a,b) :=f(a-1,b) + f(a,b-1) for

a>0, b>0 (which defines the binomial coefficients). In trying to do this in a straightforward way i get

the error message "too many levels of recursion". Using 'trace' I see that Maple doesn't seem to be

creating a remember table for functions of two variables. Am I missing something?

If you highlight words that are above or below one another on an adjacent line, the highlighting does not highlight properly. 

 Can any one help me?  please see the attached maple file.

ThxDownload 10597_aa.mws
View file details

 

 

I have a system of 14 dae that I solve using method=mebdfi but when it comes to extracting numerical values and plotting my solution I get stuck.

The error I get is Error, (in unknown) unable to integrate past 0.36509631e-3: convergence could not be achieved with stepsize at minimum

First 1856 1857 1858 1859 1860 1861 1862 Last Page 1858 of 2219