Irrational constants calculator

This program calculates irrational numbers, feel free to comment on it, give suggestions to optimise it (except switching the language from python to others like C or C++, I know it’s faster, I’m learning to), or other constants you want me to add into it.
https://replit.com/@s3D27ZHOU/Const-Calculator
Currently, it have 4 irrational numbers available to calculate, they are:

  • pi
  • e
  • square root of 2
  • golden ratio

By the way, inserting a questionnaire(?) thing for statistic that I would probably forget I’ve made it somewhen later anyways

How do you think about this project? (1->this is worse than hello world programs, 10-> this is better than my programs)
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
0 voters
2 Likes

Cool. But Golden Ratio gives a Syntax Error.

2 Likes

Fixed, thanks for the feedback :slight_smile:

2 Likes