Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "euler"
-
!rant
Anybody here heard of Project Euler? It's a series of maths/programming puzzles, and I think it's great fun trying to solve them. 😁6 -
The ultimate distraction:
Programming challenges
`WeChall`,
`Project Euler`,
`The Python programming challenge`,
Etc.3 -
I spend all morning on trying to solve an Algo problem for upcoming interview practice (Euler #3) that comes down to implementing IsPrime.
I remember reading once how Sieve of Eratosthenes
Isa the right way to go do when I first started I wanted to use that.
Then I couldn't think of the right code though so I went with Brute Force (for all numbers upto X see X is divisible by it)
It actually worked but I wanted to just try the "right way".
It's way slower and actually ended up with the wrong answer...
But at this point I don't give a **** anymore.
I guess lesson learned... Use Brute Force first... Then optimise for a problem more elegant solution.10 -
Starting my #100DaysOfCode challenge.
Anyone wish to join?
Will be solving problems from Project Euler.20 -
There's nothing funnier than talking to another programmer around a group of non programmers. Feel like the fucking rick and morty memes when you go "Hey bro. I heard you were having issues with finding the direction between two vectors, are you telling me you don't know that the direction is basically x1-x2 and y1 - y2? Just be glad you arent trying to rotate the object towards the second one with quaternions. I know eulers work but its still a pain in the ass to figure out the euler direction." And everyone sits there looking at you like youre speaking minecraft enchanting table
-
Get a girlfriend
Finish the first 200 project Euler exercises
Write some really cool shit
Get promoted -
A friend of mine studies mathematics and he told me about a project he has to do and we worked on it together a bit: Numerically calculate the arctan.
He dug out a nice series by (the one and only) Euler and we started massaging the thing to get it into a bit of a nicer form (there were (n!)^2 and other shenanigans) and we eventually succeeded after some stupid simple errors and arrived at a quite simple recursive progression. After that he also found a formula to transform a given value into the region where our formula actually mimics the arctan and we proceeded to proof this formula. The programming was straight forward and now we only have to find the radius of convergence which I suspect is pi^2 (but no proof).
I had a lot of fun doing this, fiddling around with the formulas and then programming it to see it actually becoming real.3 -
So will https://projecteuler.net help me in solving and interpreting mathematical problems better?especially in term of calculus
-
Ah the joys of debugging a finite element mesh using Backwards Euler...
Accidentally added one variable twice which produced a change of 0.001 in some of my matrices compared to everyone else. Strangely enough produces a rather larger error when summed over 100,000 iterations....
God damn you transient problems....