{"id":18027757,"url":"https://github.com/sj14/ode","last_synced_at":"2025-03-27T02:31:04.748Z","repository":{"id":23644961,"uuid":"27015222","full_name":"sj14/ode","owner":"sj14","description":"A package for the Go programming language to solve ordinary differential equations.","archived":false,"fork":false,"pushed_at":"2022-11-06T06:58:50.000Z","size":1639,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-06-21T05:04:20.414Z","etag":null,"topics":["go","ode","ordinary-differential-equations"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sj14.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}},"created_at":"2014-11-22T22:54:18.000Z","updated_at":"2022-11-05T17:10:36.000Z","dependencies_parsed_at":"2023-01-13T23:37:53.862Z","dependency_job_id":null,"html_url":"https://github.com/sj14/ode","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sj14%2Fode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sj14%2Fode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sj14%2Fode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sj14%2Fode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sj14","download_url":"https://codeload.github.com/sj14/ode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222183038,"owners_count":16944872,"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":["go","ode","ordinary-differential-equations"],"created_at":"2024-10-30T08:12:26.686Z","updated_at":"2024-10-30T08:12:27.121Z","avatar_url":"https://github.com/sj14.png","language":"Go","readme":"ode [![GoDoc](https://godoc.org/github.com/sj14/ode?status.png)](https://godoc.org/github.com/sj14/ode)\n\nA package for the go programming language to solve ordinary differential equations.\n\n## Requirements\n\n- Go Version \u003e= 1.0\n\n## Example\n```go\n// Example to show how the ode package works\npackage main\n\nimport \"fmt\"\nimport \"github.com/sj14/ode\"\n\nfunc main() {\n  // SIR Start Values\n  yStartSIR := []float64{700, 400, 100}\n\n  // Do the calculation (start, step size, end, start values, function)\n  y := ode.RungeKutta4(0, 10, 100, yStartSIR, sir)\n\n  // Output the results to the console\n  for _, val := range y {\n    fmt.Println(val)\n  }\n}\n\n// The function to calculate\nfunc sir(t float64, y []float64) []float64 {\n  result := make([]float64, 3)\n  result[0] = -0.0001 * y[1] * y[0]\n  result[1] = 0.0001*y[1]*y[0] - 0.005*y[1]\n  result[2] = 0.005 * y[1]\n  return result\n}\n```\n## Output\n```go\n[0 700 400 100]\n[10 410.90567125203955 662.4382350812937 126.65609366666666]\n[20 191.97505869594923 843.2048493089754 164.82009199507524]\n[30 79.86753851144415 911.0287568497188 209.10370463883703]\n[40 32.32376388920436 912.7706547315336 254.90558137926206]\n[50 13.263171694988241 886.7634313299168 299.973396975095]\n[60 5.607931908716353 850.9501619076912 343.4419061835925]\n[70 2.4571403113927808 812.5094770189563 385.03338266965085]\n[80 1.1171479813071248 774.1848647682339 424.697987250459]\n[90 0.5268422655752388 737.0010917960352 462.4720659383895]\n[100 0.2574396186972187 701.3189883896745 498.4235719916282]\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsj14%2Fode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsj14%2Fode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsj14%2Fode/lists"}