-
GNU bc allows you to use script files. README.md doesn't mention anything about script files. So it seems calc doesn't support this feature. Please correct me if I'm wrong. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hello @iahung2, Calc comes a rich set of standard resource files, scripts that perform a wide variety of actions. See:
for information about the many calc standard resource files shipped with calc. You may find the source to standard resource files in the calc source tree under the One may default your own functions in calc. See:
for how to define your own functions. One may then put such defined functions into a file and use:
(or whatever filename: ending the filename with ".cal" is just a convention) to implement your own resource files. One may write shelll scripts that invoke calc, with the possibility of using your own resource files and/or the standard resource files. See:
for examples and see:
for shell script examples. |
Beta Was this translation helpful? Give feedback.
-
Examples of scripts:
etc. All of the standard calc resource scripts are available for viewingtree under the cal/ source subdirectory (usually under /usr/local/share/calc or /usr/share/calc depending on your OS). |
Beta Was this translation helpful? Give feedback.
Hello @iahung2,
Calc comes a rich set of standard resource files, scripts that perform a wide variety of actions. See:
for information about the many calc standard resource files shipped with calc.
You may find the source to standard resource files in the calc source tree under the
cal/
subdirectory or the share directory if calc is installed (usually under /usr/local/share/calc or /usr/share/calc depending on your OS).One may default your own functions in calc. See:
for how to define your own functions.
One may then put such defined functions into a file and use:
(or whatever filename: ending the filename with ".cal" is just a convention)…