# Singular

 Page 1 of 1 [ 4 posts ]
 Print view | E-mail friend Previous topic | Next topic
Author Message
 Post subject: Using solve with a complex base ringPosted: 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);

Top

 Post subject: Re: Using solve with a complex base ringPosted: Tue Jan 09, 2018 3:30 pm

Joined: Wed May 25, 2005 4:16 pm
Posts: 217
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)

Top

 Post subject: Re: Using solve with a complex base ringPosted: Tue Jan 09, 2018 10:35 pm
Wonderful, thank you!

Should charstr(r) be charstr(basering)?

Top

 Post subject: Re: Using solve with a complex base ringPosted: Thu Jan 11, 2018 12:31 pm

Joined: Wed May 25, 2005 4:16 pm
Posts: 217
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.

Top

 Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending
 Page 1 of 1 [ 4 posts ]

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

 It is currently Sat Mar 23, 2019 6:18 am