Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

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

I wonder to evaluate divergence theorem when f:xi+yj+zk and the surface is a sphere with equation x^2+y^2+z^2=9 when there is a hole in the sphere with equation x^2+(y-1.5)^2+z^2=1

the volume that we consider is space between inner sphere and outer sphere

thanks 

Question 1:

Animate the plot of the graph x^2 + Bxy + 4y^2 = 2010 letting the parameter B range from -10 to 10 using frames 100. Determine when family of curves is 2 straight line.

Question 2: 

Animate the plot of the graph z^2 + c = x^2 + y^2 letting the parameter C range from -10 to 10 using frames. How can I graph and Describe what is happening

Student's t distribution is named after William Sealy Gosset's pseudonym, Student. He published using this pseudonym because his employer, the Guinness brewery in Ireland, did not allow its employees to publish scientific papers after an incident where trade secrets were disclosed. In this blog...

The Canadian Lotto649 draws are randomized the old fashioned way, the draws are held using a Ryo-Catteau Tulipe ball machine made by a well respected French Company. The draws are video recorded in a secure studio, and broadcast live.  There is no reason to suspect that these draws might not be random, but let us look at some ways we might detect it if it were not random.

You could look at the Lottery draws as a generator for a binary sequence as I did in my previous post, but as Robert Israel pointed out in the comments, that encoding can hide some non-random behavior (e.g. if the number 25 appeared in every draw, that encoding would not appear less random).

I setup Maple 11 on windows 7   but the program does not save any data

I try to use dfieldplot but no plot appears after the call. that's what i type: > restart : > with(DEtools): > dfieldplot(diff(y(x),x) = 2.x - 2.x.y(x),y(x),x=-2..2,y=-3..3); the last command appears but no plot appears. Why ?
First 1762 1763 1764 1765 1766 1767 1768 Last Page 1764 of 2224