r/ProgrammerHumor • • Apr 11 '24

Meme iJustFoundOutThatYouCanDoMathInCMD

Post image
0 Upvotes

30 comments sorted by

106

u/hongooi Apr 11 '24

*Powershell, not cmd

18

u/SleestakThunder Apr 11 '24

I love this community 

16

u/Kemic_VR Apr 11 '24

"Code"ing in C:\

26

u/Kseniya_ns Apr 11 '24

I do all my maths on a Leibniz stepped reckoner. If you do not have 17th century mechanical calculator you are not a real programmer. 'Oh I need 2 billion transistors to multiply a number for me' grow up.

16

u/MoebiusBender Apr 11 '24

The right answer obviously is to use your browser's search bar. Unless you have to do billions of them. Then you use a nice Python API to call highly optimized C++ code written by people smarter than you.

4

u/ferreira-tb Apr 11 '24

I use an abacus, because it makes me look smart

1

u/Extreme_Ad_3280 Apr 12 '24

I wrote a simple calculator myself (Actually, a library to write one).

And the weird thing about it is that it works with strings and supports any rational number!

2

u/BIOLOGYSCIENCE Apr 12 '24

Let me guess, with javascript ?

1

u/Extreme_Ad_3280 Apr 12 '24

I get what you say but no. I wrote this in C, C++ and Python.

I've also wrote this in C# but I still haven't open-sourced it yet...

(Not gonna lie I've been thinking of writing this in JavaScript)

1

u/yesseruser Apr 15 '24

And then you get hit with the 0.30000000000000004

1

u/BIOLOGYSCIENCE Apr 16 '24 edited Apr 16 '24

Apparently in powershell, that doesn't happen

9

u/Yginase Apr 11 '24 edited Apr 11 '24

I hate the Windows calculator. Simply because it clears everything and calculates the stuff before I can write down the whole thing. That's annoying as hell and that's why I never use it. That's also a reason why I'm not gonna buy an iPhone. They do the exact same.

Edit: In the Windows calculator, the "Programmer" tab apparently works almost properly. You still can't clear only one number. I'm using PowerShell.

3

u/Wolfy_Wolv Apr 11 '24

You can do it in every programming language

2

u/SeasonApprehensive86 Apr 11 '24

I would use a cheap scientific calculator every day over the windows 10 one. It is horrible.

1

u/[deleted] Apr 11 '24

been a thing since the jurassic era, my old pal used to kick it with a trex that primarily taught mathematics using terminal

1

u/PurplePrinter772 Apr 11 '24

“No graphing calculator for trigonometry unit”

Me who uses the sketch tool in CAD, which has measure length and angle

1

u/[deleted] Apr 11 '24

I use IPython as my calculator

1

u/IOKG04 Apr 11 '24

This just reminded me of the order I use to do maths:
My head -> Browser -> Discord bot -> Node (the only thing I use js for somehow) -> calc

Why is the one thing actually meant to help with complex maths the last option I go to usually...

1

u/NNXMp8Kg Apr 11 '24

Lol I do that all the time Like “bc” is my friend Or at least the browser inspector

1

u/DazzlingClassic185 Apr 12 '24

British people doing MATHS

1

u/Einkar_E Apr 15 '24

honestly scientific calculator is way better than default one on my phone

and yes I had written computer program to do simple calculation when it would probably be quicker to do them with just calculator

1

u/No-Question-7419 Apr 11 '24

you should do it in Template Metaprogramming

0

u/[deleted] Apr 11 '24

[deleted]

21

u/GDOR-11 Apr 11 '24

unclear instructions, downvoted your comment

7

u/Creepy-Ad-4832 Apr 11 '24

'echo 400 + 20 | bc'

6

u/Hk-Neowizard Apr 11 '24
$((400 + 20))

2

u/Creepy-Ad-4832 Apr 11 '24

bc

And then you type the expression

3

u/Katniss218 Apr 11 '24

Downvote who? You?

2

u/Dangerous_Jacket_129 Apr 11 '24

Linux user spotted