Skip to content

Instantly share code, notes, and snippets.

View chrisnicola's full-sized avatar

Chris Nicola chrisnicola

View GitHub Profile
@chrisnicola
chrisnicola / xirr.rb
Last active August 29, 2015 14:02 — forked from sapient/xirr.rb
Performs XIRR calculations using Ruby's Newton#nlsolve
require 'date'
require 'bigdecimal/newton'
require 'bigdecimal/math'
class XIRR
include Newton
def initialize(trans)
@trans = trans
@zero = 0.to_d
using System;
using System.Collections.Generic;
using System.Linq;
namespace JSONTestingAgain
{
class Program
{
static void Main(string[] args)
{