Skip to content

Function approximation with the help of genetic programming

Notifications You must be signed in to change notification settings

aminh7325/Function-Approximation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Function-Approximation

I implement a function approximator with the help of genetic programming. In this project I only use simple functions such as:

  • +(addition)
  • -(subtraction)
  • *(multiplication)
  • /(division)
  • ^(exponentiation)
  • cos(x) and sin(x)

The picture below is the first approximation of the program for the x*cos(x) function:

xcosx

There is a little error in the results. (the blue one is an approximation and the red one is an exact function). The picture below is another approximation for x*cos(x):

xcosx2

As you see, both are the same and depict it with black color.

To provide a complex example, we give our program a discrete function, and below are the results:

discrete

About

Function approximation with the help of genetic programming

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages