Home

Welcome to My Blog

Student, Developer, Photographer, Traveller, Foodie!

Blog

Newton Raphson method for finding roots of a cubic equation [Swift 3]

This is the most basic implementation of NR method to find root of a cubic equation! import UIKit var a = Double() var b = Double() var c = Double() var d = Double() func calc(a:Double,b:Double,c:Double,d:Double) { var rootArray = [Double]() var fvalueArray = [Double]() var fdvalueArray = [Double]() var solved = false if !solved { for i in 0...10…
Continue Reading
Blog

Thank you, better-half!

" Almost Two and a half years since the day I met you and I'm so proud to say that you've never let me down, even for once! You silently became part of my life. I took you apart many times, replaced your components. You didn't resist but adept them instead, as if they were there…
Continue Reading
Blog

Mi 4i Performance Review

So apparently, had to buy a new phone in 10-15k budget and there was a pretty large amount of devices to choose from! Brands like Asus, Lenovo, Micromax, Xiaomi, Carbon etc. are bringing down their prices to compete in Common Men's market, I had to crawl the whole(almost!) internet to decide which one to go with.…
Continue Reading
Blog

Inspiration

Hey There! Dedicating this first ever blog post to the man who inspired me alot to follow my heart, Steve Jobs. Some famous quotes: - "Stay Hungry, Stay Foolish" - "The people who are crazy enough to think they can change the world are the ones who do." - "If you haven't found it yet, keep looking. Don't settle. As with…
Continue Reading