Skip to content

Does calc support scripts like GNU bc? #95

Closed Answered by lcn2
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @iahung2,

Calc comes a rich set of standard resource files, scripts that perform a wide variety of actions. See:

; help resource

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:

; help define

for how to define your own functions.

One may then put such defined functions into a file and use:

; read file.cal

(or whatever filename: ending the filename with ".cal" is just a convention)…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
1 reply
@lcn2
Comment options

lcn2 Aug 18, 2023
Maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
1 participant