Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

Hi,

I am new to maple and this is my first question in this forum.

Please help me in finding an analytical solution to the 2nd order ode.

ode:=diff(y(x),x$2) -( a y(x) - y(x)^3 + y(x)^5 ) = 0

bcs:= D(y)(0) = 0, y(2) = 0, y(0) = 1.31

where a is a constant.

I am bit confused about the boundary conditions. I have three boundary conditions instead of two.

The first two boundary conditions yield trivial y(x) = 0 solution.so added the third bc.





Having trouble with a double summation function that calls itself recursively.

 

S2 := (p, k, n)-> piecewise(0 <= n and n < k, 1, n < 0, 0, sum(sum(p^y*(1-p)^(m-y)*S2(p, k, n-m), m = y+1 .. y+k-1), y = 1 .. n-k+1));

 

When evaluated with S2(p,2,-1) and S2(p,2,1) it works correctly (first two conditions are working)

However, when I try evaluate S2(p,2,2) Maple appears to run unbounded(?) and chokes. In fact, doing...

I found this great post on Twitter today. Two fans of Maple dress up as Maple and MATLAB for halloween:

@pastelpastel @snowangelzz Math costumes from last year! Matl... on Twitpic

I know that lots of you are big fans of Maple, but how many of you would consider going out in public dressed as Maple?

____

William Spaetzel
MaplePrimes Administrator
Software Developer, Maplesoft 

Aaaargh!  I'm going crazy here.  If anyone can help I will be massively grateful!

My problem is quite simple:  I have a long list of data, in the form: f1:=[some matrix] f2:=[another matrix]...etc.

The data has been read in from a different program.  I am trying to write a program to go through each matrix one by one and perform some operations on it.  Usually to do this I take some dummy variable, say i or j, and write:

 


Dear All,

I would like to use fsolve in an algorithm, and have problems with handling the cases where there is no solution. The help writes that in case of no solution, the fsolve assigns a NULL value to the output variable. So I exoect that I should be able to handle cases where I have solutions using the "if solution<>NULL ..." statement .

 

In some cases it is not true: fsolve writes out the input, instead of saying that there is no...

For educational purposes, I was experimenting with the Fourier series expansion of periodic functions. Following the definition for 2pi-periodic functions on Wikipedia, given by

 

 

and

 

Hello,

I tried to compile the Java program located in $MAPLE/samples/OpenMaple/Java/simple under Linux.

While compiling worked, running the .class file results in a crash of th jvm:

# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xb69abfe2, pid=6582, tid=3064224624
#
# JRE version: 6.0_20-b20
# Java VM: OpenJDK Server VM (17.0-b16 mixed mode linux-x86 )
# Derivative: IcedTea6 1.9.1
# Distribution: Custom build ...

Hello all,

I have encountered a curious bug in the EigenConditionNumbers
procedure. In particular for a pencil pencil (A,B) with B singular,
and precision higher than hardware precision.

The following code for Digits=40 produces a Float(undefined) rather
than a Float(infinity) for the infinite eigenvalue, but an alpha and
beta that will produce an infinite eigenvalue.

Digits:=trunc(evalhf(Digits));
A:=Matrix([[1,0],[0,2]]);
B:=Matrix([[1,0],[0,0]]);

i need to solve a system of ecuations with a generic function e.g V(q). i know that dif(V(q),q) is possitive and second derivative is negative. how can i incorporate this information?

q is my desition variable

A couple of days ago I found out that gzread from the zlib library can be used for fast reading of binary files in Maple from the disk to memory - about 100 times faster than readbytes - something like in the following simplified example, 

A:=Array(1..2^26,99,datatype=integer[1]):

time(writebytes("A",A));close("A");

                                9.360

B:=Array(1..2^26,1,datatype=integer[1]):
time(readbytes("A",B));close("A");

                                8.065
B[1],B[-1];

                                99, 99

myreadbytes:=proc(f)
local gzopen, gzread, gzclose, n, p, A;
gzopen:=define_external('gzopen',
    'path'::string,
    'mode'::string,
    'RETURN'::integer[4],
    'LIB'="zlibwapi.dll");
gzread:=define_external('gzread',
    'file'::integer[4],
    'buf'::REF(ARRAY(datatype=integer[1])),    
    'len'::integer[4],
    'RETURN'::integer[4],
    'LIB'="zlibwapi.dll");
gzclose:=define_external('gzclose',
    'file'::integer[4],
    'RETURN'::integer[4],
    'LIB'="zlibwapi.dll");
n:=FileTools:-Size(f);
A:=Array(1..n,datatype=integer[1]);
try p:=gzopen(f,"rb");
if gzread(p,A,n)=n
then return A end if
finally gzclose(p)
end try
end proc:
time(assign(C=myreadbytes("A")));

                                0.062

C[1],C[-1];

                                99, 99

'time(myreadbytes("A"))'$5;


                  0.078, 0.062, 0.046, 0.046, 0.046

E:=Array(1..2^26,2,datatype=integer[1]):
time(ArrayTools:-Copy(A,E));

                                0.093

That needs some tweaking, because that works only on uncompressed files. If a file ("A" in this example) was gzipped, then the gzread would ungzip n (uncompressed) bytes in it in this example, instead of copying it into the memory - but it is not a big deal, in general.

Does anybody know about a similar replacement for writebytes? gzwrite doesn't work for copying (it compresses the array.)

I used the zlibwapi.dll library from http://www.winimage.com/zLibDll/index.html, it is a version of zlib 1.2.5 (written by Jean-Loup Gailly and Mark Adler) built by Gilles Vollant. The code is for a 32-bit system (Windows). That should work in 32-bit Linux after replacing that dll with standard libz.so.1, as well as on 64-bit systems after replacing integer[4] with integer[8] in most places.

 I have been trying to do algebra in maple but I do not know how to write in it The problems I am having is with the word problems Can I just write it in ?

1.what is the form using to find the limit in the mapple? .

f(1). Find the limit of sqrt t*f(t) when t approach o+

2. what is the form using to graph the implicit function Ax^2 + bxY + cY^2=D

with A= 1 , b=1,c=1, D=2010

Base on the above examples. What is family of the curve is ax^2 + bxy + cy^2 = d

First 1762 1763 1764 1765 1766 1767 1768 Last Page 1764 of 2224