We will be migrating from Ask to Discourse on the first week of August, read the details here

Ask Your Question
0

Displaying piecewise function with 3 rules on math editor

asked 2020-09-27 08:05:01 +0200

ZJ Chow gravatar image

I am able to create a piecewise function with 2 rulesets (e.g. x when 0<=x<10, x^2 when x=10) using

left lbrace binom {input1}{input2} right none

However, if I were to have a 3rd line (e.g: x^3 when x>10) the 'binom' function in the form

left lbrace binom {input1}{input2}{input3} right none

doesn't work. Does this ability to add a third rule to the piecewise function even exist?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2020-09-27 09:08:06 +0200

ajlittoz gravatar image

Instead of using binom, use stack which allows you to "stack" an arbitrary number of items one above the other.

Within a stack { ... } list, # is the format code to break to next line, e.g.

 left lbrace stack { input1 # input2 # input3 } right none

See the built in help for more details.

To show the community your question has been answered, click the ✓ next to the correct answer, and "upvote" by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!

edit flag offensive delete link more

Comments

Thank you for this very helpful answer!

ZJ Chow gravatar imageZJ Chow ( 2020-09-27 16:49:07 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2020-09-27 08:05:01 +0200

Seen: 103 times

Last updated: Sep 27 '20