acer

32298 Reputation

29 Badges

19 years, 301 days
Ontario, Canada

Social Networks and Content at Maplesoft.com

MaplePrimes Activity


These are Posts that have been published by acer

What does a return statement mean within a module's body, but not within ModuleApply, ModuleLoad, or ModuleUnload procedures?

Is the disappearance of the return line, and the u:=3 line that follows it, some sort of automatic simplification? I'm not even sure what such a return statement is supposed to mean, in a module's body but not in ModuleApply et al.

> module() local u; u:=2; return; u:=3; end:
> convert(%,string);
"module () local u; u := 2; end module"

When I mention automatic simplification here I mean things like the disappearance of the if..then..fi for the following procedure creation. I also wonder where in the help-pages that simplification is documented.
What is the volume of a pizza of radius z and thickness a? acer

Maple 11.00, Standard GUI, worksheet mode.

plot(sin(x),x=-10..10,legend="__never_display_this_legend_entry");

It's magic. The LEGEND() call is present in the PLOT structure, but it doesn't get displayed.

acer

It's unfortunate, how the "Recent Comments" summary is now so far down the right hand side column that it isn't visible without scrolling down.

Is there any way to customize it (when logged in, say), to get the more interesting content right up at the top where one can see the summaries without having to scroll down?

acer

The first example below seems OK. But, should I be expecting the different behaviour in the second example?


> restart:
> p := module() option package; export foo;
> foo:=proc(x) x; end proc;
> end module:

> foo := proc(x) cos(x); end proc:

> foo(3.2);
-0.9982947758

> p:-foo(3.2);
3.2

> evalhf(p:-foo(3.2)); # OK
3.20000000000000018

> restart:
> p := module() option package; export sin;

First 25 26 27 28 29 Page 27 of 29