{"id":20500601,"url":"https://github.com/juliaapproximation/ratfun.jl","last_synced_at":"2026-03-06T18:36:14.845Z","repository":{"id":147355952,"uuid":"89912894","full_name":"JuliaApproximation/RatFun.jl","owner":"JuliaApproximation","description":"A package for working with functions expressible as a Fun divided by another Fun.","archived":false,"fork":false,"pushed_at":"2021-01-04T20:56:43.000Z","size":55,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-01-16T06:58:29.975Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Julia","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/JuliaApproximation.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}},"created_at":"2017-05-01T09:43:21.000Z","updated_at":"2021-01-04T20:56:45.000Z","dependencies_parsed_at":"2023-07-02T17:00:10.749Z","dependency_job_id":null,"html_url":"https://github.com/JuliaApproximation/RatFun.jl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaApproximation%2FRatFun.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaApproximation%2FRatFun.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaApproximation%2FRatFun.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaApproximation%2FRatFun.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JuliaApproximation","download_url":"https://codeload.github.com/JuliaApproximation/RatFun.jl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242092394,"owners_count":20070517,"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":[],"created_at":"2024-11-15T18:21:52.188Z","updated_at":"2026-03-06T18:36:14.812Z","avatar_url":"https://github.com/JuliaApproximation.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RatFun.jl\nRatFun is a package for working with functions expressible as a Fun divided by another Fun. The numerator and denominator may be different types of Funs.\n\n## Example usage\n\nDefine two functions on an interval using ApproxFun:\n\n```\nusing ApproxFun\nusing RatFun\np = Fun(x-\u003eexp(-10x^2))\nq = Fun(x-\u003e-1+.5x*sin(100x^2)\n```\n\nYou can define a RationalFun, representing p/q, as follows.\n\n```\nr = p // q\n```\n\nWe use Plots.jl to plot it.\n\n```\nusing Plots\nplot(plot(p,title=\"p\"),plot(q,title=\"q\"),plot(r,title=\"r=p/q\"),layout=grid(3,1))\n```\n\n\u003cimg src=images/ExampleRatFun1.png\u003e\n\nYou can also do the same for Funs with more exotic types, such as those with Dirac deltas, as follows.\n\n```\np2 = .7*DiracDelta(-1.25) - .9*DiracDelta(.5) + p\nq2 = .5*KroneckerDelta(-1.25) - .7*KroneckerDelta(.5) + q\nr2 = p2 // q2\nplot(plot(p2,title=\"p2\"),plot(q2,title=\"q2\"),plot(r2,title=\"r2=p2/q2\"),layout=grid(3,1))\n```\n\n\u003cimg src=images/ExampleRatFun2.png\u003e\n\nRationalFuns with Dirac deltas in the numerator are used in the SpectralMeasures package.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliaapproximation%2Fratfun.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuliaapproximation%2Fratfun.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliaapproximation%2Fratfun.jl/lists"}