{"id":34122815,"url":"https://github.com/gabri432/equation-solver","last_synced_at":"2026-05-28T08:31:56.724Z","repository":{"id":61626826,"uuid":"541275742","full_name":"Gabri432/equation-solver","owner":"Gabri432","description":"A program that will be able to solve any linear, quadratic or cubic equation","archived":false,"fork":false,"pushed_at":"2022-10-05T20:07:52.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-21T11:10:09.434Z","etag":null,"topics":["cubic","equation-solver","go","golang","linear","math","quadratic"],"latest_commit_sha":null,"homepage":"","language":"Go","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/Gabri432.png","metadata":{"files":{"readme":"README.it.md","changelog":"CHANGELOG.txt","contributing":".github/CONTRIBUTING.it.md","funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-09-25T18:49:34.000Z","updated_at":"2022-10-02T14:24:35.000Z","dependencies_parsed_at":"2022-10-18T17:30:29.199Z","dependency_job_id":null,"html_url":"https://github.com/Gabri432/equation-solver","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/Gabri432/equation-solver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gabri432%2Fequation-solver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gabri432%2Fequation-solver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gabri432%2Fequation-solver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gabri432%2Fequation-solver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gabri432","download_url":"https://codeload.github.com/Gabri432/equation-solver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gabri432%2Fequation-solver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27737690,"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-12-14T02:00:11.348Z","response_time":56,"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":["cubic","equation-solver","go","golang","linear","math","quadratic"],"created_at":"2025-12-14T22:01:40.499Z","updated_at":"2025-12-14T22:01:41.321Z","avatar_url":"https://github.com/Gabri432.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# equation-solver\n![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/Gabri432/equation-solver)\n![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/Gabri432/equation-solver)\n![GitHub](https://img.shields.io/github/license/Gabri432/equation-solver)\n[![Go Report Card](https://goreportcard.com/badge/github.com/Gabri432/equation-solver)](https://goreportcard.com/report/github.com/Gabri432/equation-solver)\n[![Go Reference](https://pkg.go.dev/badge/github.com/Gabri432/equation-solver.svg)](https://pkg.go.dev/github.com/Gabri432/equation-solver)\n\nUn programma che risolverà una qualunque equazione lineare, quadratica e cubica.\n\n## Come usare la libreria\n- Scarica il package 'equationsolver':\n```\ngo get -u github.com/Gabri432/equation-solver\n```\n\n- Esempio di utilizzo\n```go\npackage main\n\nimport (\n    \"fmt\"\n    eq \"github.com/Gabri432/equation-solver\"\n)\n\nfunc main() {\n    solution := eq.EvaluateEquation(\"x^3-4x=5x^2-1\")\n    fmt.Println(\"real solutions: \", solution.RealSolutions, \"\\ncomplex solutions:\", solution.ComplexSolutions)\n    myPolynom := eq.Polynom{A: 1, B: 5, C: -4, D: 1}\n    fmt.Println(myPolynom.SolveEquation())\n}\n\n```\n=== Output ===\n\nreal solutions: [-0.8752..., 0.2013..., 5.6739...]\n\ncomplex solutions: []\n\n{[0.38196... 2.61803...] [] }\n\n## Funzioni\n```go\nEvaluateEquations(equation string) EquationSolution\n```\n  - Prende l'equazione in forma di stringa e ritorna il risultato di tipo EquationSolution\n\n```go\nValidateEquation(equation string) string\n```\n  - Controlla se l'equazione inserita dall'utente è valida.\n\n## Tipi\n### Polynom\n```go\n// Crea un polinomio nella forma: ax^3+bx^2+cx+d\ntype Polynom struct {\n\ta float64\n\tb float64\n\tc float64\n\td float64\n}\n```\n### EquationSolution\n```go\ntype EquationSolution struct {\n\trealSolutions    []float64    // insieme di soluzioni reali\n\tcomplexSolutions []complex128 // insieme di soluzioni complesse\n\terrorDescription string       // messaggio d'errore\n```\n\n## Struttura del progetto\n- (main)\n  - equation.go\n  - equation_test.go\n  - internal_functions.go\n  - internal_functions_test.go\n  - license\n  - README.md\n  - README.it.md\n  - .github\n    - CONTRIBUTING.it.md\n    - CONTRIBUTING.md\n\n## Contribuire al progetto\n- Se vuoi aggiungere una feature o fare un aggiustamento fai un giro in questa pagina su come fare: [Contribuire a equation-solver](https://github.com/Gabri432/equation-solver/blob/master/.github/CONTRIBUTING.it.md)\n\n\n## Note aggiuntive\n- Se vuoi verificare l'accuratezza del programma usa i seguenti link:\n  - [Cubic Equations Solver](https://www.calculatorsoup.com/calculators/algebra/cubicequation.php)\n  - [Quadratic Equations Solver](https://www.calculatorsoup.com/calculators/algebra/quadratic-formula-calculator.php)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabri432%2Fequation-solver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgabri432%2Fequation-solver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabri432%2Fequation-solver/lists"}