echo "pr 20+5/2" | gnuplot # Lazy-note `pr` instead of printĮcho "pr 20.+5/2" | gnuplot # Lazy-note `pr` instead of printĮcho "pr sin(2*pi/3.)" | gnuplot # Some functions. It offer the advantage that you can define functions and or use the built-in ones. Gnuplot is a program born to plot data, but can be used for calculation too. Gnuplot - an interactive plotting programįollow the above link or type gnuplot form the prompt then help inside the gnuplot interpreter. a text file named /home/ndemou/.config/fish/functions/calc.fish): function calc (2) How to use the simplified syntax in fishĬreate a calc fish function (i.e. Joshua's solution: awk (no interactive mode): $ calc() Rush's solution, expr (no interactive mode): $ expr 20 + 5 This is free software with ABSOLUTELY NO WARRANTY. Mnemonic: best calculator (though the b is in fact for basic). In the rc shell family, akanga is the one with arithmetic expansion: echo $:25/3īc (see below for interactive mode), manual here With (t)csh (integer only): % a=25 / 3 echo $a There are lots of options!!! Summary $ printf %.10f
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |