This file contains 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
###################################################################### | |
using PyPlot | |
using Grid | |
using Dierckx | |
using NumericalMath | |
using splines | |
#using ApproXD | |
meshgrid(x::Vector, y::Vector) = (repmat(x, 1, length(y))', | |
repmat(y, 1, length(x))) |
This file contains 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/python | |
# -*- coding: utf-8 -*- | |
from __future__ import print_function | |
import sys | |
from PySide.QtCore import * | |
from PySide.QtGui import * | |
from PySide import QtGui | |
from PySide.QtWebKit import * | |
from PySide import QtWebKit |
This file contains 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
rewrite(x::Number) = x | |
rewrite(x::Symbol) = x | |
rewrite(x::String) = x | |
function rewrite(expr) | |
if expr.head == :ref | |
return Expr(expr.head, expr.args[1], [rewrite(:( 1 + $i)) for i in expr.args[2:end]]...) | |
else | |
return Expr(expr.head, [rewrite(i) for i in expr.args]...) | |
end |
NewerOlder