Skip to main content
4 events
when toggle format what by license comment
Feb 6, 2014 at 14:03 comment added daniero @Tomas it's sort of a a function; you need to put the parameters on the stack first, like I show in the test, or if you want to invoke your way, it would be dc -e '3 4 2^r2^+3kv[... where 3 and 4 are the parameters.
Feb 6, 2014 at 13:19 comment added Tomas doesn' really work for me. dc -e '2^r2^+3kv[The hypotenuse of this right triangle is ]Pp' doesn't wait for any input, prints "dc: stack empty" 3 times and then "The hypotenuse of this right triangle is 2.000".
Feb 5, 2014 at 23:40 history edited daniero CC BY-SA 3.0
Just function (which dc doesn't really have) is one shorter than full program
Feb 5, 2014 at 23:22 history answered daniero CC BY-SA 3.0