Skip to content

mohdbasi/ai-gradientdescent-cubic-equation-solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Cubic Equation Solver using Gradient Descent

This repository contains a simple Python program that demonstrates how gradient descent can be applied to approximate the solution of a cubic polynomial.

The general form of the equation is:

[ f(x) = ax^3 + bx^2 + dx + c ]


πŸ“Œ Features

  • Takes user input for coefficients a, b, c, d.
  • Generates a random initial value for x.
  • Iteratively updates x using a gradient-based approach.
  • Prints the approximate solution after running for a fixed number of epochs.

πŸ“‚ Requirements

  • Python 3.x
  • NumPy

Install dependencies using:

pip install numpy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors