Skip to content

Instantly share code, notes, and snippets.

View xtalax's full-sized avatar

Alex Jones xtalax

View GitHub Profile
begin
var"##f#257" = (ModelingToolkit.ODEFunctionClosure)(function (ˍ₋arg1, ˍ₋arg2, t)
begin
begin
var"v[20](t)" = (*)(0.8414709848078965, (exp)((*)(-1, t)))
var"v[3](t)" = (+)((+)((*)(0.5, (getindex)(ˍ₋arg1, 19)), (*)(0.5, (getindex)(ˍ₋arg1, 20))), (*)(0.00014552475590851675, (exp)((*)(-1, t))))
var"v[5](t)" = (+)((+)((*)(-1.0, var"v[3](t)"), (*)(2.0, (getindex)(ˍ₋arg1, 20))), (*)(-0.0004355664317500006, (exp)((*)(-1, t))))
var"v[6](t)" = (+)((+)((*)(-1.0, (getindex)(ˍ₋arg1, 20)), (*)(-0.0005788770749661647, (exp)((*)(-1, t)))), (*)(2.0, var"v[5](t)"))
var"v[7](t)" = (+)((+)((*)(-0.0007205845507054019, (exp)((*)(-1, t))), (*)(-1.0, var"v[5](t)")), (*)(2.0, var"v[6](t)"))
var"v[8](t)" = (+)((+)((*)(-1.0, var"v[6](t)"), (*)(2.0, var"v[7](t)")), (*)(-0.0008602964080896811, (exp)((*)(-1, t))))
@xtalax
xtalax / config.py
Created March 21, 2022 19:49
qtile config
# Copyright (c) 2010 Aldo Cortesi
# Copyright (c) 2010, 2014 dequis
# Copyright (c) 2012 Randall Ma
# Copyright (c) 2012-2014 Tycho Andersen
# Copyright (c) 2012 Craig Barnes
# Copyright (c) 2013 horsik
# Copyright (c) 2013 Tao Sauvage
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
@xtalax
xtalax / error_benchmarking.jl
Created July 17, 2019 10:41
error benchmarking for centered difference operator
using DiffEqOperators, Plots
n = 10000
@show n
x = range(0.0; length = n, stop = 2π)
dx = x[2]-x[1]
y = exp.(π*x)
y_ = y[2:(end-1)]
for dor in 1:4, aor in 2:6