User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » Why Maple is the worst software evAr Page [1]  
mrfrog

15145 Posts
user info
edit post

Where there are endless examples of said point, this one seemed pretty representative

> dPdz2 := x-> piecewise(x<1,1,x>1,1/x);

dPdz2 := x -> piecewise(x < 1, 1, 1 < x, 1/x)

>dPdz2(z);
{ 1 z < 1
{
{ 1/z 1 < z


> dPdz2(0);
Error, (in dPdz2) division by zero

11/19/2005 10:52:55 PM

Jere
Suspended
4838 Posts
user info
edit post

MAPLE IS THE VIRUS!

11/19/2005 11:52:46 PM

virga
All American
2019 Posts
user info
edit post

take the limit

11/20/2005 1:28:30 AM

clalias
All American
1580 Posts
user info
edit post

works for me...? (try the restart command, you might have defined your function differently before)

> f:=x->piecewise(x<1,1,x>1,1/x);

f := x -> piecewise(x < 1, 1, 1 < x, 1/x)

> f(z);

{ 1 z < 1
{
{ 1/z 1 < z

> f(0);

1

>

[Edited on November 20, 2005 at 12:33 PM. Reason : .]

11/20/2005 12:31:34 PM

Dumbass
All American
3412 Posts
user info
edit post

Ifuck

[Edited on November 20, 2005 at 2:51 PM. Reason : nm]

11/20/2005 2:50:05 PM

mrfrog

15145 Posts
user info
edit post

^^ what version you got? it could just be Maple 7.

11/20/2005 4:55:01 PM

clalias
All American
1580 Posts
user info
edit post

I am using 10. That could be it.

Are you loading any packages that would change the behavior of piecewise? like
with(Student); or something?

have you tried to define it like
>f(x):=piecewise(...);
>subs(x=0,f(x));

11/20/2005 5:45:58 PM

 Message Boards » Study Hall » Why Maple is the worst software evAr Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.39 - our disclaimer.