Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong number of components ? #76

Open
craff opened this issue Oct 29, 2022 · 8 comments
Open

Wrong number of components ? #76

craff opened this issue Oct 29, 2022 · 8 comments

Comments

@craff
Copy link

craff commented Oct 29, 2022

The following file should produce a sextic plane curve with 11 real components. Even
speciying a large sphere, bertini_real only gives 1 component. Unfortunatly I do not have matlab, so I can not see
the curve.

CONFIG

tracktype: 1;
mptype: 2;
END;

INPUT

variable_group x,y;
function f1;
f1= 5902958103587057/295147905179352825856*x^6 + 40531964440273725/72057594037927936*x^4*y^2 + 25036959739963005/72057594037927936*x^4*y + 1920267795234525/36028797018963968*
x^4 + -5/288230376151711744*x^3*y^2 + 1/36028797018963968*x^3*y + 1/288230376151711744*x^3 + -27015689041511865/72057594037927936*x^2*y^4 + 4173100506748115/18014398509481984
*x^2*y^3 + 7681560821320809/72057594037927936*x^2*y^2 + -16171977850148559/576460752303423488*x^2*y + -4618832124818515/576460752303423488*x^2 + -5/288230376151711744*x*y^4 +
 -1/1152921504606846976*x*y^3 + 3/576460752303423488*x*y^2 + -19/36893488147419103232*x + 4505040779251255/72057594037927936*y^6 + -4173335654696659/36028797018963968*y^5 + 1
920512623176073/36028797018963968*y^4 + 673871944243585/72057594037927936*y^3 + -2309574197692173/288230376151711744*y^2 + 3172797267229483/73786976294838206464;

END;
@craff
Copy link
Author

craff commented Oct 29, 2022

I could use python ... That is not well advertised and took time to find. Everything is fine.

@craff craff closed this as completed Oct 29, 2022
@ofloveandhate
Copy link
Owner

I could use python ... That is not well advertised and took time to find

Indeed, I could do better at advertising the Python visualization suite. There's documentation on it at https://doc.bertinireal.com/python/ . It's not near as feature-rich as the Matlab suite, but it's a decent start.

@ofloveandhate
Copy link
Owner

It sounds like Bertini_real computed your curve correctly. Is that right?

@ofloveandhate ofloveandhate reopened this Oct 30, 2022
@craff
Copy link
Author

craff commented Oct 30, 2022 via email

@craff
Copy link
Author

craff commented Oct 31, 2022 via email

@ofloveandhate
Copy link
Owner

I would happily accept a PR with some more curve examples.

I bet the issues you're having with "NEW" points will be solved by adjusting tolerances. Bertini_real is numerical software, and thus "makes mistakes". The following are not rare, especially without adjusting settings away from defaults:

  • missing critical points, due to path crossings. this can be improved by tightening tracktolbeforeeg, tracktolduringeg, and some others.
  • mid-identifying points as the same or different from each other. we're approximating points with floating point numbers, with finite accuracy, and so determining whether two points are the same is difficult.

i bet that adjusting a few settings makes bertini_real compute your curves correctly. having them as part of my suite of test examples would be helpful.

~silviana

@ofloveandhate
Copy link
Owner

I would suggest to advertise both python and MATLAB from the web page.

good suggestion.

@ofloveandhate
Copy link
Owner

Yes, I was just misleaded by a message saying one component

Gotcha. The number of components is reported by Bertini -- and is the number of complex components, not real. It's common for a real curve (or surface) to have multiple "components", but in fact be parts of one complex object; thus, the real "components" aren't in fact separate components at all, just the real pieces of a single complex object.

In the world of bertini_real, "component" is reserved for the complex algebraic variety language part of the theory, and we should use another word to describe the disconnected or singularly connected pieces of a real curve or surface. I've been using the word "piece", particularly in the case of singularly connected pieces of a real algebraic surface. If you have a better word than "piece", I'm open to it.

An elliptic curve with two pieces is an easy-to-see example. Consider the curve $y^2=x^3-x$. It has one complex component, with two disconnected real pieces: one is compact, and the other diverges to $\infty$.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants