Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Using solve with a complex base ring
PostPosted: Mon Jan 08, 2018 5:11 pm 
In the manual, it says that the
Code:
solve
function assumes that the base ring is either complex or without parameters. However, when I try to use the
Code:
solve
function with a complex base ring, I get the error that "basering has parameters". Should I be defining my base ring differently, or does
Code:
solve
not work with a complex base ring?

Code:
LIB "solve.lib";
ring r = complex, (x,y), dp;
ideal I = ((x-5)*y+16)/32, y^2-x^3-5*x-10;
solve(I);


Report this post
Top
  
Reply with quote  
 Post subject: Re: Using solve with a complex base ring
PostPosted: Tue Jan 09, 2018 3:30 pm 

Joined: Wed May 25, 2005 4:16 pm
Posts: 275
Download
https://raw.githubusercontent.com/Singular/Sources/spielwiese/Singular/LIB/triang.lib
and substitute your triang.lib with it.
(or apply the fix:
https://github.com/Singular/Sources/commit/6329a81b7cafaee38b65741b7f22b6dda976a133)


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Using solve with a complex base ring
PostPosted: Tue Jan 09, 2018 10:35 pm 
Wonderful, thank you!

Should charstr(r) be charstr(basering)?


Report this post
Top
  
Reply with quote  
 Post subject: Re: Using solve with a complex base ring
PostPosted: Thu Jan 11, 2018 12:31 pm 

Joined: Wed May 25, 2005 4:16 pm
Posts: 275
Yes, the correct fix is
https://github.com/Singular/Sources/commit/a5506e9bcabe897f284fb0d9c22069461daa5b74,
as the routines of triang.lib MAY require factorization of polynomials
which is not implemented for complex (i.e. inexact) coeffcients.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

It is currently Fri May 13, 2022 10:59 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group