This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ConfettiView.swift | |
// Monkey | |
// | |
// Created by Harrison Weinerman on 3/25/17. | |
// Copyright © 2017 Monkey Squad, Inc. All rights reserved. | |
// | |
import UIKit | |
import CoreMotion | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Calc IA | |
// | |
// Harrison Weinerman | |
// | |
// Spring 2016 | |
// | |
// NOTE: Implicit differentiation support isn't complete. Does not yet implement product rule so be wary of differentiating unseparable equations beyond the first derivative. Also, evaluating derivatives at a point currerntly plugs in the same value for all variables. | |
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//This code works fine in a Swift playground. | |
let startingX = 0.0 | |
let finishingX = 2.0 | |
//make this smaller for more accuracy but slower calculation times | |
let increment = 0.1 | |
var area = 0.0 | |
func fOfX(x : Double) -> Double{ |