Skip to content
Discussion options

You must be logged in to vote

Hello @sangisos,

Yes, with a different precision (i.e., epsilon), one may very likely see different output when calc prints values.

The following changes in output are expected (note we are using the 3rd eps argument to change rounding for a single builtin call, see help polar for details):

$ calc
C-style arbitrary precision calculator (version 2.14.0.14)
Calc is open software. For license details type:  help copyright
[Type "exit" to exit, or "help" for help.]

; epsilon()
	0.00000000000000000001
; display()
	20
; polar(5, acos(.6))
	2.99999999999999999999+4i
; polar(5, acos(.6), 1e-20)
	2.99999999999999999999+4i
; polar(5, acos(.6), 1e-25)
	~2.99999999999999999999+~4.0000000000000000000…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lcn2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants