nerdpole

15 Reputation

3 Badges

9 years, 13 days

MaplePrimes Activity


These are replies submitted by nerdpole

thank you!

thank you!

by the way:

i have exactly the same problem when the linalg package is loaded in the .txt file only.

The code in test.mw works still fine but wholecode.mw produces the same errors as mentioned above.

Can someone explain me why it is sometimes necessary to load packages in the prompt an not indirectly via read(filename) where filename contains with(linalg);

if i remove the "restart;" command in the first line, the code is working.

Someone has got an idea what happens here?

update:

it sounds: alpha := unapply( piecewise(

Thanks a lot!

That didn't work :(

the exact function is:

alpha := (x1,x2,x3)-> piecewise(
    x1 < 0 or x2 < 0 or x3 < 0 or h < x1 or h < x2 or h < x3, 0,
    0.5*h  ..... );

but neither

alpha := (x1,x2,x3)-> unapply(piecewise(
    x1 < 0 or x2 < 0 or x3 < 0 or h < x1 or h < x2 or h < x3, 0,
    0.5*h  ..... )),x1,x2,x3);  

nor

alpha := (x1,x2,x3)-> piecewise(
    x1 < 0 or x2 < 0 or x3 < 0 or h < x1 or h < x2 or h < x3, 0,
    0.5*h

did the job :(

what is wrong?

Thanks

update:

it sounds: alpha := unapply( piecewise(

Thanks a lot!

That didn't work :(

the exact function is:

alpha := (x1,x2,x3)-> piecewise(
    x1 < 0 or x2 < 0 or x3 < 0 or h < x1 or h < x2 or h < x3, 0,
    0.5*h  ..... );

but neither

alpha := (x1,x2,x3)-> unapply(piecewise(
    x1 < 0 or x2 < 0 or x3 < 0 or h < x1 or h < x2 or h < x3, 0,
    0.5*h  ..... )),x1,x2,x3);  

nor

alpha := (x1,x2,x3)-> piecewise(
    x1 < 0 or x2 < 0 or x3 < 0 or h < x1 or h < x2 or h < x3, 0,
    0.5*h

did the job :(

what is wrong?

Thanks

Page 1 of 1