Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Calculator Pro
-
Hi guys! Here is my own calculator that I did entirely on my iPhone in two days. I'm actually pretty happy with the result. In my opinion, it is a more useful calculator than the one that comes with iOS. The one downside is that it takes more taps to open my calcultor in Pythonista than a normal calculator app, and with an iPhone 4 and iOS 7, more taps means exponentially more time... :D
You can get it here. It should also work on an iPad, but I wouldn't know because I haven't got one.
Let me know what you think!
Features:
-
Enter full mathematical expressions with parenthesis (unlike the calculator that comes with iOS)
-
Comparison support: for example,
sin(pi) > cos(pi)
yieldsTrue
-
Trig functions and their arc variations
-
Constants:
pi
ande
-
Exponentiation, factorization and natural logarithms
-
Press
=
equal without a current expression to repeat the last calculation (specially useful when paired with theAns
button) -
Handles errors with style (try dividing by zero to see what happens!)
-
Press the result screen at the top to copy the last result to the clipboard
-
-
@Truppelito Hi, I am getting error @line 188 (indentionError: unindent does not match any outer indentation level)
-
@due3die Sorry, slight problem when copying & pasting. It should work now, please redownload the gist.
-
@Truppelito Superb...
-
Nicely done! Great work @Truppelito!
Just out of curiosity; since you don't have an iPad, did you code this on the iPhone or did you use a computer?
Because I can imagine it would be exhausting to write all that on just an iPhone XD -
@Sebastian As dificult as that may seem, I did write this entirely on my iPhone 4! I was on vacation and I didn't have my computer, but I had this urge to code, for some reason, and Pythonista is such an amazing app... And so it happened that my perserverance outmatched my tiny screen :)
-
A stunning demonstration of the addictive nature of Pythonista ;-)
-
@ccc Yes, yes it is indeed!
-
I feel like I'm missing the way to get gists into Pythonista. There doesn't appear to be an easier way than selecting the source manually and copying. Any tips?
-
-
I indicated at GitHub a run-time error ;-) and my solution.
Plus a wish to add more functionality
E,g:
Rand gives always a fraction so to have random numbers (1, ..6) you
need to get rid of fraction part (after multiplication etc.) -
Who is willing to help understanding the code, to add more working buttons?