adrianblp/taylor.swift · GitHub

Programmers are a funny bunch of people. Searching for ‘Swift’ inevitably leads to results for a certain pop singer. Someone’s decided that there needs to be at least one result going the other way.

taylor.swift – Taylor series expansion in Swift

Source: adrianblp/taylor.swift · GitHub

It calculates the Taylor (series) expansion of sin(x).

This uses a Unicode character as a variable;

var ?:Double

I’ll have to think of a way to incorporate that I think.

Leave a Reply