Skip to content

Instantly share code, notes, and snippets.

View svetlanama's full-sized avatar

Svitlana Moiseyenko svetlanama

View GitHub Profile
@svetlanama
svetlanama / GrowingSpeed.playground
Last active May 23, 2016 22:04
To define which function works faster log or sqrt is to observe their growing speed
import UIKit
import Foundation
/*
How to define which function works faster log or sqrt
The best way is to caclulate their growing
*/
//Define the growing of function logarithm
func logWithBase(base: Double, n: Double) -> Double {