Eq can be used just to create an <i>ASCII Art</i> representation of an equation. To do this, type the following command in a command line:
$ eq format "sqrt( 3 * 3 / 4! )"
_____
/ 3.3
/ -----
\/ 4!
For your convenience, you also could store the result of the command line into a file. With great originality, doing this require using the -o switch.
$ eq format -o foo.txt "sqrt( 3 * 3 / 4! )"
$ cat foo.txt
_____
/ 3.3
/ -----
\/ 4!
If you want to pretty print a formula stored in a file, if it’s the result of another program for example. You can use the -f switch.
$ echo '3 * 5 / 2' > foo.txt
$ eq format -f foo.txt
3.5
-----
2
And you can combine every switch in every way, store a file in a file whil reading from another.