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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <ctype.h> | |
#include <string.h> | |
#define STACK_SIZE 1000 | |
#define MAX_OPERATORS 10 | |
#define MAX_LINE 300 | |
// Clear any exception |
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
public ResultPair solveNewton(double init, double epsilon) | |
{ | |
int numIt = 1; | |
double root; | |
double xn; | |
double xnPlusOne; | |
double xnMinusOne; | |
xn = init; | |
xnPlusOne = xn - eval(xn) / getDeriv().eval(xn); |
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
#!/bin/bash | |
# by Zachary Klippenstein | |
# | |
# Prints out a bunch of information about all files in the current | |
# directory and subdirectories, recursively. | |
# Info includes: | |
# - filename | |
# - file type (as given by 'file' command) | |
# - file contents (prefixed by filename and line number in file, and for binary files, result of 'strings') |
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
#!/usr/bin/ruby | |
# | |
# Ugly-as-heck script for comparing two CSV files whose rows have changed, and | |
# where rows were added to or removed from the second file. Traditional diff tools | |
# can't make the connection between these two types of changes, so show every line as having | |
# changed. | |
# | |
# Uses git and gitk. | |
require 'fileutils' |
NewerOlder