Skip to main content
9 events
when toggle format what by license comment
Oct 24, 2021 at 2:21 comment added Nick Dong smooth L1. $0.5x^2$, if $\mid x\mid<1$; otherwise $\mid x\mid -0.5$. f = Piecewise[{{0.5 #^2, Abs[#] < 1}, {Abs[#] - 0.5, Abs[#] >= 1}, {Log[#], 2 < #}}] &; works fine with two colors.
Apr 3, 2013 at 9:11 history edited Mr.Wizard CC BY-SA 3.0
deleted 9 characters in body
Feb 2, 2012 at 4:59 history edited Mr.Wizard CC BY-SA 3.0
added 277 characters in body
Feb 1, 2012 at 21:36 vote accept mirandaio
Jan 20, 2016 at 2:31
Feb 1, 2012 at 21:36 vote accept mirandaio
Feb 1, 2012 at 21:36
Feb 1, 2012 at 20:44 history edited Mr.Wizard CC BY-SA 3.0
added 69 characters in body
Feb 1, 2012 at 20:11 history edited Mr.Wizard CC BY-SA 3.0
added 362 characters in body
Feb 1, 2012 at 20:03 comment added David This plots the functions as zero out of their piecewise domain. You can get rid of this behavior by using Piecewise[{#, {Indeterminate, True}}] instead. However, this assumes that the original Piecewise does not use a True directive already.
Feb 1, 2012 at 19:58 history answered Mr.Wizard CC BY-SA 3.0