View sample_optim.mop
package bob
import Modelica.Constants;
function mu
input Real t;
output Real y;
y := 2.4*abs(cos(Constants.pi/12*t));
end mu;
View unambig_url_shortener.rb
require 'digest'
#This function takes an input string, a desired hash length, and an attempt
#number. It returns a hash of the specified length encoded in an alphabet which
#is unambiguous in both upper and lower case. The attempt number should
#initially be 0. If the hash is found to conflict with a previous result, then
#the attempt number should be incremented and the function called again with the
#same input string and hashlen. If you have incremened attempt number an