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/env python3 | |
# Find chemical symbols and surround them with \ce{ Symbol } | |
# Problem words: I, HOW, In, degrees K. Add words to exlist to ignore them. | |
# Also find lines of the type: '(a) .*' and surround them with '\wrongchoice{ (a) .*}' | |
import re, sys | |
if len(sys.argv) < 2 : | |
print('Usage:> {} <filename>'.format(sys.argv[0])) | |
sys.exit(1) |
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
(* found at https://community.wolfram.com/groups/-/m/t/1313893 *) | |
(* \ | |
modified as per reddit user u/wxehtexw to integrate from -inf instead \ | |
of 0 *) | |
FractionalD[\[Alpha]_, f_, x_, opts___] := | |
Integrate[(x - t)^(-\[Alpha] - 1) (f /. x -> t), {t, -Infinity, x}, | |
opts, GenerateConditions -> False]/Gamma[-\[Alpha]] | |
FractionalD[\[Alpha]_?Positive, f_, x_, opts___] := | |
Module[{m = Ceiling[\[Alpha]]}, | |
If[\[Alpha] \[Element] Integers, D[f, {x, \[Alpha]}], |
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
#!/bin/bash | |
pyver=3.9 | |
if [ -n "$1" ]; then | |
pyver="$1" | |
fi | |
pyroot=$HOME/opt/pythonidae | |
pyftp="https://www.python.org/ftp/python" | |
quitexit(){ |
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
# bc config file, define constants and functions | |
# all units from physics.nist.gov (if available) | |
## math constants | |
pi=4.0*a(1.0) | |
phi=(1.+sqrt(5.))/2. | |
## physics constants | |
g=6.6743*(10^-11) # gravitational, (m3 kg-1 s-2) | |
h=6.62607015*(10^-34) # planck, (J s) |
OlderNewer