[GiNaC-devel] A smarter relational to Boolean conversion

Vladimir V. Kisil V.Kisil at leeds.ac.uk
Fri Jun 4 10:31:22 CEST 2021


	Dear All,

	I am attaching a small patch. With it the following conversions
  from relational to Boolean will become "true" from the current "false":

  realsymbol x("x");
  possymbol p("p");
  cout << bool(p>0) << endl;
  cout << bool(abs(x)>=0) << endl;

  Best wishes,
  Vladimir
-- 
Vladimir V. Kisil                 http://www.maths.leeds.ac.uk/~kisilv/
  Book:      Geometry of Mobius Maps       https://doi.org/10.1142/p835
  Soft:      Geometry of cycles         http://moebinv.sourceforge.net/
  Jupyter notebooks:       https://github.com/vvkisil/MoebInv-notebooks

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Smarter-conversion-of-a-relational-to-Boolean.patch
Type: text/x-diff
Size: 2967 bytes
Desc: Conversion patch.patch
URL: <http://www.ginac.de/pipermail/ginac-devel/attachments/20210604/e471a9aa/attachment.bin>


More information about the GiNaC-devel mailing list