0.9.38 • Published 2 years ago
@geometryzen/eigenmathts v0.9.38
eigenmathts
Eigenmath in TypeScript with EcmaScript modules
eigenmathts is a Javascript program for evaluating Eigenmath scripts in a browser.
Scripts are read from document.getElementById("stdin").value
Results are written to document.getElementById("stdout").innerHTML
For a STEMCstudio example (click here to try)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<base href="/">
<title></title>
<!-- link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/modern-css-reset/dist/reset.min.css" /-->
<link rel="stylesheet" href="style.css">
</head>
<body>
<textarea id="stdin" rows="24" cols="80" style="font-family:courier;font-size:1em" spellcheck="false"></textarea>
<button id="btn-run">Run</button><br>
<div id="stdout"></div>
</body>
</html>import { run } from '@geometryzen/eigenmathts'
const stdin = document.getElementById("stdin") as HTMLTextAreaElement
stdin.value = [
`f=sin(x)/x`,
`f`,
`yrange=(-1,1)`,
`draw(f,x)`
].join('\n').trim()
const btnRun = document.getElementById("btn-run") as HTMLElement
btnRun.onclick = run
window.onunload = function() {
// Write your application cleanup code here.
}
// Used to ensure that this file is treated as a module.
export { }0.9.46
1 year ago
0.9.45
1 year ago
0.9.44
2 years ago
0.9.43
2 years ago
0.9.34
2 years ago
0.9.35
2 years ago
0.9.36
2 years ago
0.9.37
2 years ago
0.9.30
2 years ago
0.9.31
2 years ago
0.9.32
2 years ago
0.9.33
2 years ago
0.9.38
2 years ago
0.9.39
2 years ago
0.9.41
2 years ago
0.9.42
2 years ago
0.9.40
2 years ago
0.9.14
2 years ago
0.9.15
2 years ago
0.9.16
2 years ago
0.9.17
2 years ago
0.9.18
2 years ago
0.9.19
2 years ago
0.9.23
2 years ago
0.9.24
2 years ago
0.9.25
2 years ago
0.9.26
2 years ago
0.9.20
2 years ago
0.9.21
2 years ago
0.9.22
2 years ago
0.9.27
2 years ago
0.9.28
2 years ago
0.9.29
2 years ago
0.9.12
2 years ago
0.9.13
2 years ago
0.9.10
2 years ago
0.9.11
2 years ago
0.9.9
2 years ago
0.9.8
2 years ago
0.9.7
2 years ago
0.9.6
2 years ago