mlazaric / chebyshev Goto Github PK
View Code? Open in Web Editor NEWA simple python module for approximating any sympy expression using the Taylor series and Chebyshev polynomials.
License: MIT License
A simple python module for approximating any sympy expression using the Taylor series and Chebyshev polynomials.
License: MIT License
Hello, thanks for making this! I was wondering if it would be possible to create a DOI with the code on Zenodo to make it more easily citable. It would be much appreciated!
Please add an introduction paragraph. It is unclear what is the purpose of this repository ๐
Hi,
do you have reference to the Chebyshev approximation you do?
maybe different approach is to get error for each degree and then do the cutoff
Hello,
i like your programm it works very good for a lot of cases. But it is not working at all with Abs from sympy. Any idea on how to fix this? Below is my simple test. The function that should be approximated is Abs(x). It has an analytical solution with the polynom -x since the domain is from -1 to 0. The approximation is sadly not correct as far as i can see.
#%%
import re
from sympy import exp, ln, sin, cos
from sympy.abc import x
from sympy import Max,Abs
from chebyshev.approximation import get_best_approximation
func = Abs(x)
table_of_contents = []
approximation = get_best_approximation(func, (-1,0), 7, 20)
approximation.plot_approximation(show=True)
# %%
regards,
Martin
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.