2023-02-08 04:29:53 +0100 | received badge | ● Popular Question (source) |

2023-02-07 16:53:06 +0100 | received badge | ● Popular Question (source) |

2022-10-31 02:10:58 +0100 | received badge | ● Popular Question (source) |

2021-02-17 02:01:22 +0100 | received badge | ● Editor (source) |

2021-02-17 02:00:44 +0100 | asked a question | Sagemath 9.2 Product function Bug In sagemath 9.2 the product function have a bug in multiplication. returned a result with leading series to be (Both wrong in the powers and the coefficients ) while returned a result with leading series to be Notice that both returned a result with leading series to be |

2021-01-22 01:31:27 +0100 | received badge | ● Scholar (source) |

2021-01-21 07:10:55 +0100 | asked a question | How to import rings in python module I'm trying to build a sage 9 code into a format of python module with .py file, and run the module in the sage command line. Most of the issue could be fixed through this webpage https://doc.sagemath.org/html/en/tuto... by importing packages with command line such as i.e. set up the sage environment manually. However, a built in mechanism in sage was the usage of rings. i.e. 1/3 in sage automatically returned 1/3 in rational ring, but when put the code in python module and run it in sage command line. was in class 'float' or 'int' How to set up the environment so that the module could run operation in sage rings automatically? |

2020-12-10 04:34:57 +0100 | commented answer | Very different matrix inverse result in complex ring CC and in real ring RR while entry only contain real elements In CC returned 0.9999999999999999 and 0.9999999999999999 for one of the entry where returned 1.07087986853908 and 0.723606797749979 for two of the entry. where in RR both expression returned 1.00000... I don't have enough space to copy the function but you can try couple of square matrix of higher order. For the interest in our project, default matrix inverse operation in CC worked for square matrix of 3 by 3, but failed for square matrix of 6 by 6, and default matrix inverse operation in RR worked for square matrix 6 by 6 but failed for square matrix of 10 by 10. But so far, the inverse function provided by numpy package had been working for all those cases. |

2020-12-10 04:27:07 +0100 | commented answer | Very different matrix inverse result in complex ring CC and in real ring RR while entry only contain real elements But this happened to invertible matrix as well. The above result was only for demonstration, since it was calculated with float precision. I encountered this in a project where an invertible matrix calculated in CC had a very different inverse than the one calculated with RR. And a final result ought to be 0 but returned 0.0354399342695375 - 0.109072902259946*I. One observation was that the invertible matrix calculated in CC was almost 1e2 times less preciece than the standard numpy matrix. After I used RR and complete the matrix inverse by directly calling the inverse function in numpy package, the result then returned correctly. There was something very wrong with the precision control of matrix inverse in CC. |

2020-12-10 02:27:12 +0100 | received badge | ● Nice Question (source) |

2020-12-10 01:11:16 +0100 | asked a question | Very different matrix inverse result in complex ring CC and in real ring RR while entry only contain real elements I would use an dramatized example here but it was encountered during a project as well. Suppose two matrix consisted of the same entry of only real elements. However, one was in the real domain RR, and one was in the complex domain CC. The inverse of the complex matrix and the real matrix different significantly. Example: and which returned test_S test_S_CC However, their inverse (test_S)^-1 (test_S_CC)^-1 where (test_S)^(-1)-test_S_CC^(-1) Is this a bug? How to fix the issue? |

2020-09-15 19:10:08 +0100 | asked a question | How to fix mod(17,7)=3 and yet -mod(17,7)=4? In sageMath 9.1, I encountered the following issue mod(17,7) returned a result of 3 while -mod(17,7) automatically rearranged the number(-3) in the module group into the group element 4. How would I simply obtain -3 as what the code was instead of 4? |

2020-09-08 19:45:11 +0100 | received badge | ● Supporter (source) |

2020-09-07 09:26:14 +0100 | received badge | ● Student (source) |

2020-09-07 03:52:51 +0100 | asked a question | Sage symbolic math simplification error In sagemath version 9.1, the code product(1-q^x, x, 1, N) returned -(-1)^N*product(q^x - 1, x, 1, N) while the correct result ought to be (-1)^N*product(q^x - 1, x, 1, N) What went wrong? Where did this sign change come from? |

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.