First time here? Check out the FAQ!

Ask Your Question
0

How do I define a piecewise function?

asked 14 years ago

ccanonc gravatar image

updated 10 years ago

FrédéricC gravatar image
Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 14 years ago

kcrisman gravatar image

Okay, this is actually well documented, though the actual behavior of Piecewise functions leaves a lot to be desired (as the original implementor, David Joyner, would be the first to admit) - nonetheless you can do a fair amount with them, though sometimes not with the same syntax as the rest of Sage.

Try

sage: sage.functions.piecewise??

as well as the documentation for Piecewise and PiecewisePolynomial.

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 14 years ago

Seen: 720 times

Last updated: Sep 25 '10