{"id":21919845,"url":"https://github.com/fusion809/jscripts","last_synced_at":"2025-03-22T10:20:12.683Z","repository":{"id":167754390,"uuid":"56037699","full_name":"fusion809/JScripts","owner":"fusion809","description":"Assorted JavaScripts I have written","archived":false,"fork":false,"pushed_at":"2020-06-16T19:04:13.000Z","size":1285,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-27T10:11:32.124Z","etag":null,"topics":["javascript","mathematics","ode-solver"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fusion809.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-12T06:37:18.000Z","updated_at":"2022-05-12T23:25:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"68c1cf1e-b83a-4b4e-98c2-ca4850e46007","html_url":"https://github.com/fusion809/JScripts","commit_stats":null,"previous_names":["fusion809/jscripts"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fusion809%2FJScripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fusion809%2FJScripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fusion809%2FJScripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fusion809%2FJScripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fusion809","download_url":"https://codeload.github.com/fusion809/JScripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244938732,"owners_count":20535290,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","mathematics","ode-solver"],"created_at":"2024-11-28T20:11:41.650Z","updated_at":"2025-03-22T10:20:12.653Z","avatar_url":"https://github.com/fusion809.png","language":"JavaScript","readme":"# JScripts\nThis repository mostly contains scripts, written in JavaScript (JS), for the purpose of scientific computing. Here there be ODE solvers.\n\n## Structure\nAn example structure for this repository is:\n\n```bash\n.\n├── lib/\n│   └── RK4/\n│       ├── 1st-order.js\n│       ├── 2nd-order.js\n│       └── 3-coupled-1st.js\n├── LICENSE\n├── math/\n│   ├── old/\n│   │   ├── RK4-airy.js\n│   │   ├── RK4-rosetta.js\n│   │   ├── RK4-simpen.js\n│   │   └── RK4.js\n│   ├── RK4/\n│   │   ├── airy.js\n│   │   ├── anger.js\n│   │   ├── hermite.js\n│   │   ├── lorenz.js\n│   │   └── rwave.js\n│   └── work-in-progress/\n│       └── SLE-airy.js\n└── README.md\n```\n\nThe `lib` folder, as one may guess, contains scripts that are used in other scripts (usually because they contain useful functions). The `RK4` subfolder of the `lib` folder contains scripts related to the fourth-order Runge-Kutta Method, although known by the abbreviated RK4. The `1st-order.js` script is for solving equations of the form:\n\n\u003cimg src=\"images/generalized-1st-order-eq.png\" align=\"center\" border=\"0\" alt=\"\\frac{dy}{dx} = f(x,y)\" width=\"298\" height=\"117\" /\u003e\n\nThe `2nd-order.js` script is for equations of the form:\n\n\u003cimg src=\"images/generalized-2nd-order-eq.png\" align=\"center\" border=\"0\" alt=\"\\frac{d^2 y}{dx^2} = f\\left(x,y,\\frac{dy}{dx}\\right)\" width=\"400\" height=\"122\" /\u003e\n\n\n## Airy Equation\n\u003cscript src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'\u003e\u003c/script\u003e\n\u003cscript type=\"text/x-mathjax-config\"\u003e\nMathJax.Hub.Config({\n  tex2jax: {inlineMath: [['$','$'], ['\\\\(','\\\\)']]}\n});\n\u003c/script\u003e\n\n$$ \\frac{d^2 y}{dx^2} = xy $$\n\n## How to use these scripts\nIn order to use these scripts I recommend you have Git, Node.js and NPM installed and run:\n\n```bash\ngit clone https://github.com/fusion809/JScripts\ncd JScripts\nnpm install gnu-plot mathjs ode-rk4\n```\n\nThen when you want to run a script run it using Node.js, that is, use the command:\n\n```bash\nnode \u003cSCRIPT\u003e.js\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffusion809%2Fjscripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffusion809%2Fjscripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffusion809%2Fjscripts/lists"}