01/13/2012. From a lecture by Professor John Ousterhout at Stanford, class CS140
Here's today's thought for the weekend. A little bit of slope makes up for a lot of Y-intercept.
[Laughter]
#!/bin/bash | |
# Brew | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" | |
# NVM | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash | |
# oh my ZSH | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" |
/* | |
* Implementation of backward-mode automatic differentiation. | |
*/ | |
/** | |
* Differentiable variable with value and derivative of differentiation ([grad]) result | |
* with respect to this variable. | |
*/ | |
data class D(var x: Double, var d: Double = 0.0) { | |
constructor(x: Int): this(x.toDouble()) |
public static class LINQPadExtensions | |
{ | |
private static readonly Dictionary<Type, string> TypeAliases = new Dictionary<Type, string> { | |
{ typeof(int), "int" }, | |
{ typeof(short), "short" }, | |
{ typeof(byte), "byte" }, | |
{ typeof(byte[]), "byte[]" }, | |
{ typeof(long), "long" }, | |
{ typeof(double), "double" }, | |
{ typeof(decimal), "decimal" }, |
# coding: utf-8 | |
'''The following code reproduces an example of the paper: | |
'The Complex-Step Derivative Approximation' | |
by Joaquim R. R. A. MARTINS, Peter STURDZA and Juan J. Alonso published in 2003. | |
License: MIT | |
Author: FJ Navarro Brull | |
''' |