In this case there is a singularity at t=0, but the command singular() does not give it:
singular(1/cos(1/t));
{t = 2/(Pi*(1+2*_Z1))}
With the numeric range option it gives the correct answer:
singular(1/cos(1/t), -1 .. 1);
{t = 0}, {t = -2/(39*Pi)}, {t = -2/(37*Pi)}, {t = -2/(35*Pi)} etc.
The command discont also gives the correct answer:
discont(1/cos(1/t),t);
{0, 2/(Pi*(1+2*_Z2))}
I have maple 11.

I am trying to recreate a transcendental equation from a paper on buckling analysis. I have not been able to successfully manipulate equation (10) given on page 692 of the attached files into the final forms of equations (12) and (13), using the boundary conditions given in (11). Could someone take a look at my Maple worksheet and offer some suggestions that would yield an elliptic integral?

Download 4865_Lo_p692.pdfView file details
Download 4865_Lo_p693.pdfView file details
Say I have a directory of files with names:
sim01.m,
sim02.m
...
sim20.m
I can automate the collection of the names of the files with
>file_list:=FileTools[ListDirectory]("D:\\MapleVariables\\Data"):
but how do I automate the reading of the files ie how do I append each file name in file_list to the end of the command:
>read "D:\\MapleVariables\\Data
so I can then read it

Using Maple 10.05 with Windows XP Pro, how do I write a Maple command containing the _ character, without having it make a subscript?
Specifically, there are some defined procedures whose names contain the _, such as geodesic_eqns(.....) in the tensor package. I've tried all kinds of key combinations, without success, to get that _ not to act as a subscript designator.
Don Ritchie

HI all,
I have the following formula in Maple:
Assume(eps>0, v>0, k>=0, n> 0, k, 'integer', n, 'integer', k

I have searched and googled all over places, just couldn't figure out how to save all the variables in the current workspace.
save all, "myfilename.m"
doesn't work at all.
There is no such usage in the documentation.
When you have many variables, how do you save them all?
-----------------
Two quick side questions(without opening a new thread):
Q1:
If you have two statements joined together, how to separate them?
I am using GUI in Maple 11:
Example:
statement_x; statement_y;
how to break them into:
statement_x;
statement_y;
Every time I hit "Enter" after statement_x, both got executed. After long waiting(they happened to be both huge and messy), messy results were printed out, I have to scroll many pages, but these two statements were still together. Annoying!

Codegen: floating point constants vs. symbolic constants
Let's say in a complex-valued function, constants such as 1/2, 1/4, etc. are involved. I found, upon some experts' advice, the symbolic computations are different. If one expression is too hard to evaluate or simplify, changing the constants back and forth between floating point constants 0.5, 0.25, etc. and symbolic constants 1/2, 1/4 or one way or the other will often help.
However, our end goal is code generation and translation into C or Fortran. Will the efficiency and accuracy be different in the translated end results for the floating point constants and symbolic constants cases? I roughly found no difference.

Gradient: thought comparison of the codegen version and the symbolic version.
This is something I don't understand. There are two ways of obtaining the gradient of a function: (1) codegen uses auto-differentiation; (2) derive the partial derivative symbolically. Both can be translated into C or Fortran code, since my end goal is the C or Fortran code.
The documentation claims the auto-differentiation is more efficient. I don't understand. Any more complete views about this matter? Does auto-differentiation win both in accuracy and efficiency? Or perhaps there is a trade-off between efficiency and accuracy? I just wanted to hear more opinions from your experience. Thanks a lot!

I recently switched from XP to an Intel Mac (OS X 10.4.9); I am using Maple 9.5 on the Mac. In contrast to Win XP the backspace key does'nt work as expected (delete the previous character). Is there any other key or combination of keys for deleting characters?
Regards
Wilhelm

I recently switched from XP to an Intel Mac (OS X 10.4.9); I am using Maple 9.5 on the Mac. In contrast to Win XP the backspace key does'nt work as expected (delete the previous character). Is there any other key or combination of keys for deleting characters?
Regards
Wilhelm

In MAPLE one has the next command.
> for n from 1 to 3 do
n=2 then next; end if;
print(n);
end do;
I was wondering how you could have more than one next. So instead, skip over two numbers, or three.. etc?

Hi all,
If I have an expression and it involves computations with extremely large numbers. Double precision is bound to fail in my case.
And when I used Matlab 2007a's symbolic toolbox, which I believe uses Maple 10 or Maple 9's engine, it supposedly should always return correct value, because its symbolic, with infinite precision. But it still fails for some parameters which makes the numbers too large.
Now if I compute the same expression in Maple 11, it is even worse. The calculation fails for a lot more parameters. The failing parameter set for previous Maple version is now a subset of the failing parameter set for the Maple 11. The difference is huge -- Maple 11 gives wrong values almost all the time, even for very friendly parameters.

Hi all,
Did you discover the same mysterious thing about the command execution time in Maple?
Here is my observation:
If I have been using this session for a long time and then if I issue a long-processing command, such as simplification of a very complicated expression, etc. After a while, Maple will get into "steady state": it keeps running and running, without consuming more memory and showing more activity, the time even counts towards 10000 second, etc.
If based on this, I think the expression is really too complicated for it to simplify, then I am wrong.
After rebooting the PC, and relaunch Maple, and start the same command to simplify the same expression, it generated a result within 15 minutes, successfully...

How can I make maple read data from file.dat and fit it in a nonlinearfit.thanks.R

For each of the definitions
p := proc( x :: float ) :: float; x^(2/3) end proc:
p := proc( x :: float ) :: float; x^evalf((2/3)) end proc:
i get an error by calling Compiler:-Compile( p ):
"Error, (in printtab[CodeGeneration:-Names:-Rational])
rational numbers and arithmetic are not yet supported"
Any suggestions what to do (except manually converting
all exponents to floats)?
Edited to add: for example the following does not work:
c := proc (S::float,...