Jamie Ly

Jamie Ly

Developer, student, person

Skip to content
  • Arts/Crafts
  • Programs
  • Writings
  • About

math

There are 4 posts tagged math.

Project Euler Problem 6 Solution: Clojure

Problem description, from Project Euler Find the difference between the sum of the squares of the first N natural numbers and the square of the sum. Solution This one actually seemed to be easier than the others. No filters required! The biggest hangup I had was that when I originally read the problem, I thought […]

in Programming | 124 Words

Project Euler Problem 2 Solution: Clojure

Problem 2 Description, from Project Euler Find the sum of all the even-valued terms in the Fibonacci sequence which do not exceed four million. Solutions My first attempt The trickiest thing for me was figuring out how to write the fibonacci function in an elegant way. I know that with functional languages, recursion is supposed […]

in Programming | 258 Words

Project Euler Problem 1 Solution: Clojure

After PhillyETE, I wanted to try out some Clojure, so I decided to solve the first problem of Project Euler. I coded up my own solution using some of the references on the Clojure site. Project Euler Problem Description, from Project Euler Find the sum of all the multiples of 3 or 5 below N. […]

in Programming | 257 Words

Javascript Gaussian/Banker’s Rounding

Here’s a function for Gaussian/Banker’s Rounding in Javascript adapted from code written by Michael Boon at //boonedocks.net/. This can be useful if you’re working with Microsoft languages such as VBScript, which use Banker’s Rounding by default in their Round function. Javascript has no built-in gaussian rounding and, instead, uses Arithmetic rounding. For more information on […]

in Libraries, Programming | 378 Words

Archives

Independent Publisher empowered by WordPress