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
| #- | |
| #:smallsize 100M | |
| #:termsinsmall 10M | |
| #:largesize 500M | |
| *--#[ time : | |
| #define oldt "0.0" | |
| #procedure resettime() | |
| #redefine oldt "`time_'" |
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
| Block[{a = 10, ep = 10^-30}, | |
| NIntegrate[ | |
| I/(x - a + ep*I) - I/(x - a - ep*I), {x, -Infinity, a, Infinity}, | |
| WorkingPrecision -> 1000, PrecisionGoal -> 6] | |
| ] |
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
| AppendPath::ver = "AppendPath requires Mathematica version 7 or later."; | |
| If[$VersionNumber < 7, | |
| (* We use FileExistsQ and FileNameJoin. *) | |
| Message[AppendPath::ver]; | |
| Abort[]; | |
| ]; | |
| AppendPath::usage = "AppendPath[path] appends the given path to $Path in \ | |
| Kernel/init.m."; |
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
| #- | |
| Off stats; | |
| CF pow,log; | |
| CF pow1,log1; | |
| S x,n | |
| S uuu; | |
| Auto S ttt; | |
| #procedure simopt(F,t1,t2,type,file) |
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
| ps f -o user,pid,ppid,pgid,tty,time,command |
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
| require "formula" | |
| class Form < Formula | |
| homepage "http://www.nikhef.nl/~form/" | |
| url "https://github.com/vermaseren/form/releases/download/v4.1-20131025/form-4.1.tar.gz" | |
| sha1 "527005d082a823e260d77043be3c2539dcc6a72f" | |
| head do | |
| url "https://github.com/vermaseren/form.git" | |
| depends_on "autoconf" => :build |
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
| TrapezoidalRule[expr_, {x_, x1_, x2_}, n_Integer] := Module[{h}, | |
| h = (x2 - x1) / (n - 1); | |
| Sum[ | |
| Switch[i, | |
| 0, 1/2, | |
| n - 1, 1/2, | |
| _, 1 | |
| ] * (expr /. x -> x1 + i * h) * h | |
| , {i, 0, n - 1}] | |
| ] /; n >= 2; |
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 <iostream> | |
| using namespace std; | |
| class C { | |
| public: | |
| explicit C(int i) { | |
| cout << "create" << endl; | |
| n_ = i; | |
| } |
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
| ColorToHexString[expr_] := expr /. | |
| c:Hue[_]|Hue[_, _, _]|CMYKColor[_, _, _, _]|GrayLevel[_] :> | |
| ColorConvert[c, "RGB"] /. | |
| RGBColor[r_, g_, b_] :> | |
| "#" <> IntegerString[Clip[Round[r * 255], {0, 255}] * 256^2 + | |
| Clip[Round[g * 255], {0, 255}] * 256 + | |
| Clip[Round[b * 255], {0, 255}], 16, 6]; |