Geoff

40 Reputation

9 Badges

0 years, 269 days

MaplePrimes Activity


These are replies submitted by Geoff

(23) Slight misalignment of [] with [1] at Zoom 100%

(22) Error with break i, or break 2

It works if I put the code in a procedure, using break(i) or break(2).

(21) Logic inconsistency?

(20) Unexpected Behaviour of timelimit

try timelimit(0.03, 12^(7^11)) catch: end try;

does not work.

Is there a way to prevent the program from crashing?

(19) Unexpected Behaviours

@acer 

Wow, this is exactly what I needed. Really appreciate you taking the time to help!

@acer 

Thanks. But what if I want the procedure to accept both Groupings(4, 2) and Groupings([1, 2, 3, 4], 2) as valid input?

Thanks to @dharr for the quick and helpful response, it solved my problem perfectly. Also, thanks to @acer for the additional suggestion and simplification. Your answers were very helpful!

I'd like to add an additional requirement to the original problem::

Example:

Groupings(4, 2)  or  Groupings([1,2,3,4], 2)

Expected output:

[[[[1, 2], 3], 4], [1, [[2, 3], 4]], [[1, [2, 3]], 4], [1, [2, [3, 4]]], [[1, 2], [3, 4]]]

Would you mind suggesting how I could modify your solutions?

(18) Missing solutions in isolve

It appears to be a bug.

The 2 solutions represent two phases of motion under gravity, and both should be returned (as in Maple 7), irrespective of the sign of v__0.

 

Here is the output from Maple 7:

 

(17a) Strange Plot Behavior (Problem Solved)

(17) Strange Plot Behavior

 

 

(12a) Expressions (1) and (2) hold only when n is an integer, regardless of whether p>1 or p<1 , making the assumption "n::integer" superfluous.

(16) Round brackets missing in the Layout palette.

1 2 Page 1 of 2