Skip to content

Gaurav Sharma's Blog

Articles on Statistics, Machine Learning and Functional Programming

  • About
  • Sample Page

Categories:

  • Algebra
  • Analysis
  • BookExcerpts
  • Circuit Simulation
  • Computer Science
  • Concurrency
  • Design
  • Development Tools
  • Essays on Life and Philosophy
  • Fixed Point
  • Functional Programming
  • Git
  • Hackers
  • Haskell
  • History of Mathematics
  • Inference
  • Interpreters
  • Linear Regression
  • Linear Regression Models
  • Links
  • MapReduce and NoSQL
  • Mathematics
  • Numerical Methods
  • On Writing
  • OOP
  • PaulGrahamEssays
  • Prime Numbers
  • Probability
  • Programming Tasks
  • Quotes
  • Racket
  • Rationality
  • SAS
  • Scheme
  • Sicp Solutions
  • Signal Processing
  • Startups
  • Statistical Software
  • Statistics
  • Tail Recursion
  • Time Series
  • Type Theory
  • Uncategorised
  • Uncategorized

Recent Posts

  • Quotes from Stoic Emperor
  • Hello world!
  • Quotes on Focusing
  • Excerpts from ‘How to Work Hard’
  • Flow – The Psychology of Optimal Experience

Recent Comments

  • A WordPress Commenter on Hello world!

Category: Numerical Methods

Monte Carlo Simulation

 

 

Posted on October 1, 2015Author Gaurav SharmaCategories Functional Programming, Numerical Methods, Programming Tasks

Simpson’s Rule for Integration

Implementation of simpson’s rule for integration

Posted on October 1, 2015Author Gaurav SharmaCategories Functional Programming, Numerical Methods, Programming Tasks

Square-root using Newton’s Method

The following uses Newton’s Method to find square root.

It keeps record of how guess changes from one iteration to the next and stops when the change is a very small fraction of the guess.

 

Posted on September 30, 2015Author Gaurav SharmaCategories Functional Programming, Numerical Methods, Programming TasksLeave a comment on Square-root using Newton’s Method

Continued Fraction For Tangent Function

A continued fraction representation of the tangent using J.H. Lambert’s formula:

where x is in radians.

k specifies the number of terms to compute:

 

 

Posted on September 30, 2015Author Gaurav SharmaCategories Functional Programming, Numerical Methods, Programming Tasks, SchemeLeave a comment on Continued Fraction For Tangent Function
Proudly powered by WordPress