# Calculator that can calc 2^4! on copy paste hint:not microsoft calc

• The challenge evaluate this expression using copy-paste

1*(1^3)*((997/1+3)!)/((997/1)!)

Microsoft calculator on windows 8 did a partial good job copy pasting that expression except
omitting the ^ and just wrote 13. and I guess this is the wtf here.

Google should be able to evaluate it but the expression does not invoke the calculator may be the numbers are too big for them to waste cpu
smaller expression works

So what calculator do you use?

• gnome-calculator:

Looks fine to me.

• cool so we know that linux is better then windows

does gnome-calculator able to show the full expression?

• It does, until you press enter:

Additional results. Wolfram-alpha via IRC bot: (we totally need a WA summon, get on it @accalia)

``````<Riking> .wa 1*(1^3)*((997/1+3)!)/((997/1)!)
<Shocky> Riking: http://bots.axxim.net:8000/s/3s | Exact result: 997002000 | Scientific notation: 9.97002 × 10^8
``````

Javascript via IRC bot:

``````<Riking> ?calc function factorial(n){return n?n*factorial(n-1):1}; 1*(Math.pow(1,3))*(factorial(997/1+3)/factorial(997/1))
<Shocky> sun.org.mozilla.javascript.internal.EvaluatorException: missing ) in parenthetical (<Unknown Source>#1)
<Riking> ....
<Riking> ?js function factorial(n){return n?n*factorial(n-1):1}; 1*(Math.pow(1,3))*(factorial(997/1+3)/factorial(997/1))
<Shocky> NaN``````

• Python REPL:

``````>>> import math
>>> 1*(1**3)*(math.factorial(997/1+3))/(math.factorial(997/1))
997002000L
``````

• Wolfram-alpha

nice it can handle it with a direct copy-paste

programmatic way does require modification of the expression, work but less desired.

• Fun link-roulette. These will change every few days/weeks (when the bot restarts)

http://bots.axxim.net:8000/s/1 - Shortened links. Low numbers are usually RSS, but can be tweets, WA queries, other commands.
http://bots.axxim.net:8000/s/2
http://bots.axxim.net:8000/s/3
http://bots.axxim.net:8000/s/4
http://bots.axxim.net:8000/p/1 - Pastes. Usually scrollback logs or idleRPG leaderboards
http://bots.axxim.net:8000/p/2
http://bots.axxim.net:8000/p/3
http://bots.axxim.net:8000/p/4
http://bots.axxim.net:8000/p/c

• TRWTF: Using an IRC bot to get a stream of your twitter notifications (really, wtf? use tweetdeck ಠ_ಠ)

• Neither the android calculator nor the 48g clone accept copy&paste.

• I'll add it to the list of bots to write.

in the middle of a rewrite of the bot core files to expand functionality and improve performance without increasing load on the discourse instances they are pointed at.

• I'll add it to the list of bots to write.

Go for it.

I thought about making a CalcBot but really didn't want to write a mathematical parser and I know I'd get order of operations wrong on the first 23491743 tries.

Though if I ever get PythonBot going it would work as a decent CalcBot. If only PyPy's sandbox documentation was reasonably up-to-date and correct.

• have you looked at

though I am not sure it is going to be easier to setup

• 1*(1^3)*((997/1+3)!)/((997/1)!)

I was mildly surprised that copy/pasting into Chrome did not yield Google's calculator thing as expected, but did yield a search result for this thread.

• I use qalculate.

Either the plasma applet:

or the full gui

Note that the value is displayed in several formats; I tried switching the display modes.

I also left the previous expression in history in view as it shows how it does conversions. This is a monetary conversion (it can download current rates from somewhere), it can also do unit conversions with pretty good selection of units.

Everything it does in the gui can be done in the widget, but it does not have the menu, so you have to remember unit abbreviations and you can't tell it to update the currency conversion rates.

• This doesn't surprise me:

• This doesn't surprise me:

FTFY

• That's an ugly ass UI you've got there. 1995 called, they want it back.

• hmm... i know bc can do factorial.... but `!` is not the right symbol...

/me goes to rummage through man pages

• Why you replied to me?

• cause you complained about ugly UI

• The shell is the best UI, although toxic green is not my preference:

• blame my first computer for that pereference.

it was a green monochrome monitor.

• You poor, I was one of the lucky ones:

• You just need to use Y instead of ^. (Or, for squaring and cubing, Q and # as shortcuts.)

• Cool, slightly less intuitive, but at least possible

Here is a full list a Microsoft calculator keyboard shortcut

• I don't understand what this picture is doing when I'm scrolling the page.

• 1*(1^3)*((997/1+3)!)/((997/1)!)

assuming that we can tweak the expression I found this to work: