Skip to content

Instantly share code, notes, and snippets.

7shi 7shi

Block or report user

Report or block 7shi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@7shi
7shi / ClifTensor.fsx
Last active Jan 7, 2020
[F#] Tensor product decomposition of Clifford algebra
View ClifTensor.fsx
let memoize (f: 'k -> 'v) =
let cache = System.Collections.Generic.Dictionary<'k, 'v>()
fun a ->
let b, v = cache.TryGetValue a
if b then v else
let ret = f a
cache.[a] <- ret
ret
let curry f = fun a b -> f(a, b)
@7shi
7shi / ClifEven.fsx
Last active Jan 16, 2020
[F#] Clifford even subalgebra
View ClifEven.fsx
let memoize (f: 'k -> 'v) =
let cache = System.Collections.Generic.Dictionary<'k, 'v>()
fun a ->
let b, v = cache.TryGetValue a
if b then v else
let ret = f a
cache.[a] <- ret
ret
let curry f = fun a b -> f(a, b)
@7shi
7shi / 1.fs
Created Oct 15, 2019
[F#] Fable + KaTeX
View 1.fs
open System
open Fable.Core
open Fable.Core.JsInterop
open Browser.Types
open Browser
// ref. https://medium.com/@zaid.naom/f-interop-with-javascript-in-fable-the-complete-guide-ccc5b896a59f
[<Emit("convert($0, $1)")>]
let render output (input:string): unit = jsNative
@7shi
7shi / 1.fs
Last active Oct 15, 2019
[F#] Fable + MathJax
View 1.fs
open System
open Fable.Core
open Fable.Core.JsInterop
open Browser.Types
open Browser
// ref. https://medium.com/@zaid.naom/f-interop-with-javascript-in-fable-the-complete-guide-ccc5b896a59f
[<Emit("convert($0, $1)")>]
let render output (input:string): unit = jsNative
@7shi
7shi / Bessel.ipynb
Last active Sep 24, 2018
Reverse Bessel Polynomial
View Bessel.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@7shi
7shi / Harmony.ipynb
Last active Aug 16, 2018
調和微分形式とスカラーポテンシャル
View Harmony.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@7shi
7shi / InfiniteProdSin.ipynb
Created Jul 25, 2018
sinの無限積分解による近似計算
View InfiniteProdSin.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@7shi
7shi / Array.ipynb
Created Feb 19, 2018
[Julia] Array
View Array.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View bessel_map.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@7shi
7shi / log30.csv
Created Jan 18, 2018
[CSV] 『ゼロから作るDeep Learning』第7章の出力を1/30にカット
View log30.csv
1 2.29964740
0.84094847
0.79129566
0.34839778
0.35527300
0.37331826
0.31527809
0.26583934
0.24770286
0.18744572
You can’t perform that action at this time.