Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9229695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:38:10+00:00 2026-06-18T05:38:10+00:00

Hi basic question in trying to use commons-math’s PolynomialSolver classes. According to the documentation

  • 0

Hi basic question in trying to use commons-math’s PolynomialSolver classes.

According to the documentation here http://commons.apache.org/math/userguide/analysis.html as well as the API the solving methods typically take the form

double c = solver.solve(100, function, 1.0, 5.0, AllowedSolution.LEFT_SIDE);

I’m obviously missing something, but given that the fundamental theorem of algebra is that there are n roots for a polynomial of n degree, how do I get all the roots?

What good is a root solver returning one double?

I noticed in this thread Finding roots of polynomial in Java that the method offered in the solutions returns a complex array. This is what I’d expect, so could someone kindly explain why the commons-math polynomial solvers are returning one double root?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T05:38:12+00:00Added an answer on June 18, 2026 at 5:38 am

    most of these numerical algorithms operate on generic functions (i.e. not necessarily polynomials) and make few assumptions about them. if we don’t know what given function’s nature exactly is, we can’t even expect to infer how many roots it might have.

    some algorithms there make additional assumptions that given functions are differentiable. this makes them faster but require you to provide some additional info like derivate value so you can’t use them for any function anymore.

    LaguerreSolver makes additional assumption that given function is a polynomial. is this case it is possible to find all roots, hence solveAllComplex() method. but it is the only algorithm there specialized in polynomials. all the other algorithms are far more generic.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This must be a really basic question: I am trying to use Matplotlib. Here's
I have a basic math question. I am trying to get a percentage from
Newbie question here. I am trying to use the django-extjs library in my django
This is a pretty basic question. I'm trying to use SciPy/NumPy to perform fft
I have a really basic question concerning unix timestamp and mysql date. I'm trying
Question I'm trying to create a basic wxWidgets program with a text entry box,
Sorry, this might be a basic/stupid/noob question - I am just trying to tweak
Basic question here - I have many lines of code that look something like:
Basic question here. I started using ARC and am not sure if I should
I'm having a very basic question about regular expressions. I am trying to match

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.