MaplePrimes Commons General Technical Discussions

The primary forum for technical discussions.

Is it possible to perform an external call to a Java method that is not static?

When I attempt to  use the Maple function define_external with a java method that does not include the keyword 'static', Maple does not locate the method and returns an error.

Though it does not appear in the help documentation, it appears that external calls to Java methods is restricted to static methods.

Is this true?

I am using Maple 10.04.

 

Thanks

Bill

A colleague of mine recently mentioned something to me about an article that circulates every year during the holiday season, entitled “The Physics of Santa Claus”. This was news to me, so I ran a few Google searches to find out what she was talking about.

 

It seemed that some enterprising person had taken the time to go through and explain just what is involved in Santa’s Christmas Eve trip around the world delivering presents. How many households does he have to visit? How much do all those presents really weigh? How fast do the reindeer need to fly in order to get it all done in a finite amount of time? There is much speculation as to the origins of this piece; the general consensus seems to be that it began life published in SPY magazine in the early 1990s. Whatever the true story, it’s still an entertaining read in 2008.

I’ve taken some time to update the original with more current data – for instance, it seems the world’s population has grown a bit in the last 20 years. According to the Population Reference Bureau, the world population in 2008 was approximately 6,705 billion; 28% of these are children (defined as being under 15):

In fact, making some assumptions about the percentage of these children that celebrate Christmas and the number of children per household, it turns out that Santa needs to visit close to 200 million homes in one night.

We assume he distributes gifts from 5 pm to midnight, or for 7 hours. Due to the Earth's rotation, there is an overall time difference of 24 hours between different time zones, so we can therefore say that Santa has 31 hours to finish his work (assuming he logically travels east to west). Visiting 200 million homes in 31 hours means that Santa has to visit approximately 1586 homes per second:

This gives him about 1/1600th of a second to do everything at each home, such as parking his sleigh, looking for the right gifts, climbing down the sleigh and chimney, binge on snacks, fill the stockings, come up again and rush to his next stop!

For the complete details of his annual trip, visit the Applications Center where I’ve posted the Maple document in which I’ve recreated the Santa calculations. Happy Holidays!!

Just a small issue maple could fix in an update. 

When you reach the bottom of the screen and you're typing out a long equation with many brackets the gray bar that is supposed to match them up underneath the equation is out of view.  It's nothing major and I'm sure maple already knows about this, it's probably not high on their priority list to fix but just as an FYI for them to fix for future updates.

I am a math teacher and was wondering if Maplesoft offers special pricing for Maple. I will purchase Maple with my funds for my class activities so I am not talking about academic pricing.

My computer has Mac OS X 10.5.5   Does latest version of Maple works with this OS?

While solving the following system of equations, i get the error message "Kernel connection has been lost".  I believe it is a memory problem.

eqa := u[1]*u[2]*(B[1]-B[2]) = xi*(u[2]*E-u[2]*v[1]*B[1]-u[1]*E+u[1]*v[2]*B[2]);

eqb := rho[1]*u[1]-rho[2]*u[2] = xi*(rho[1]*v[1]-rho[2]*v[2]);

Hello. I have the error displayed in the title. I get this error when I choose "solve for p" when hovering over the following expression:
"
limit(sum(p^k*(1-p)^(x-k)*log2(factorial(x)/(factorial(k)*factorial(x-k))), k = 0 .. x), x = infinity)
"

Did I type in my expression badly or is it just not solvable?

Hello all,

I have a polynomial having the form P(x) = a_n*x^n + ... + a_1*x + a_0; where all coefficients a_n have numerical values. I use the Maple's routine solve to find the polynomial roots (solve(P)). The obtained roots real and complex. The polynomial order n is between 6 and 20, depending on the specific implementation.

My question is: what method is used in the solve routine? Similar post are discussed in

I am student at RPI ( calc 1 , like having calc 2) trying to start a project and having a bit of diffcultly. Can anyone help ?

The function pdsolve gives different answers depending upon the way the problem is posed. For example:

> PDE1:=a*diff(u(x,t),t)+b*diff(u(x,t),x)-u(x,t)^2=0;
> ans1:=pdsolve(PDE1);

gives:

> ans1 := u(x,t) = b/(-x+_F1(-(-t*b+a*x)/b)*b);

Whilst,

> PDE2:=a*diff(u(t,x),t)+b*diff(u(t,x),x)-u(t,x)^2=0;
> ans2:=pdsolve(PDE2);

which is the same problem but with u(x,t) replaced by u(t,x), gives:

> ans2 := u(t,x) = a/(-t+_F1((-t*b+a*x)/a)*a);

Both are actually correct solutions, as is easily verified by a call to pdetest.

My query is:

Hi

Generally maple runs smoothly for me but if I have a very large loop then I sometimes find the memory allocation increases & increases until I hit a limit after which maple crashes with a message about "losing the kernel connection".

If a buy a new PC with more physical RAM (current PC has 2Gb) will the problem go away?

I use old style command line maple & have increased the virtual memory allocation as much as it allowed me to.

thanks!

Maple requires connection to the kernel for calculations.  Does that mean maple uses kernel mode device drivers? 

"Executing commands in Maple requires a connection to the Maple kernel"

What is a kernel, and why does Maple need to access the internet to perform simple commands?  I'm sure I've used maple without the internet before.

Every now and then someone will post here on Mapleprimes and the code will use an older package such as linalg or stats. Quite often it is clear that the poster is new to Maple. Yet these packages have been superceded with new ones, eg. LinearAlgebra and Statistics.

One obvious question that then arises is: how did this user decide to use the older package?

I just did a google search on

<p>How do I render 3D plots from command line maple on Mac OS X? (My calculations are memory intensive and I can not spare the huge memory that the GUI requires.)</p>
<p>On my old Solaris box, I would use <br />
>interface(plotdevice = x11);<br />
but it appears Maple has not written a X11 driver for the Mac.</p>
<p>Presumably Maplesoft wants me to use an alternative plotdevice, such as "postscript" or "jpeg", but I can not find one which allows me to rotate the rendered plot.  What am I missing?</p>
First 31 32 33 34 35 36 37 Last Page 33 of 78