{"id":24875526,"url":"https://github.com/shaxov/scikit-numerical","last_synced_at":"2025-07-28T08:05:34.328Z","repository":{"id":57464440,"uuid":"182563549","full_name":"shaxov/scikit-numerical","owner":"shaxov","description":"Tools for numerical math calculations.","archived":false,"fork":false,"pushed_at":"2023-07-06T21:32:20.000Z","size":184,"stargazers_count":1,"open_issues_count":10,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-06-25T12:53:23.952Z","etag":null,"topics":["integration","interpolation","python3","splines"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shaxov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-21T17:35:47.000Z","updated_at":"2023-06-10T19:08:12.000Z","dependencies_parsed_at":"2022-09-17T14:52:40.798Z","dependency_job_id":null,"html_url":"https://github.com/shaxov/scikit-numerical","commit_stats":null,"previous_names":["bellator95/scikit-numerical"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/shaxov/scikit-numerical","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaxov%2Fscikit-numerical","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaxov%2Fscikit-numerical/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaxov%2Fscikit-numerical/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaxov%2Fscikit-numerical/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shaxov","download_url":"https://codeload.github.com/shaxov/scikit-numerical/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaxov%2Fscikit-numerical/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267024656,"owners_count":24023246,"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","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["integration","interpolation","python3","splines"],"created_at":"2025-02-01T08:16:54.614Z","updated_at":"2025-07-28T08:05:34.298Z","avatar_url":"https://github.com/shaxov.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Tools for numerical math calculations\n\nThis repository contains tools for math numerical computation such as numerical integration and interpolation. The current implementation contains:\n-   numerical integration using Gauss formula\n\n    ```python\n    import numpy as np\n    from numerical.integration import gauss\n    \n    def f(x):\n        return np.power(x[0], 2)\n    \n    gauss.integrate(f, 0., 1.)  # 0.3333333\n  \n    ```\n\n\n-   spline functions and theirs derivatives\n\n    ```python\n    import numpy as np\n    from numerical import splines\n    import matplotlib.pyplot as plt\n    \n    x = np.arange(0, 4., 0.05)\n    y = splines.schoenberg(x)\n    yd1 = splines.schoenberg.deriv(x, order=1)  # first derivative\n    yd2 = splines.schoenberg.deriv(x, order=2)  # second derivative\n    # visualize results\n    plt.plot(x, y)\n    plt.plot(x, yd1)\n    plt.plot(x, yd2)\n    plt.show()\n  \n    ```\n\n![spline_derivs](https://github.com/Bellator95/scikit-numerical/blob/master/images/shenberg_spline_derivatives.png)\n\n\n-   function interpolation\n\n    ```python\n    import numpy as np\n    from numerical import interpolate\n    import matplotlib.pyplot as plt\n    \n    def fun(x):\n        return 1 - np.power(x[0] - 0.5, 2)\n\n    grid = np.array([np.arange(0, 1.0001, 0.25)])\n    values = fun(grid)\n    itp_fun = interpolate(values, grid)\n    \n    x = np.arange(0., 1.00001, 0.001).reshape(1, -1)\n    y_intp = itp_fun(x)\n    y_true = fun(x)\n\n    plt.plot(x[0], y_intp)\n    plt.plot(x[0], y_true)\n    plt.show()\n    ```\n    \n![linear_interpolation](https://github.com/Bellator95/scikit-numerical/blob/master/images/linear_interpolation.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaxov%2Fscikit-numerical","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshaxov%2Fscikit-numerical","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaxov%2Fscikit-numerical/lists"}