-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
5 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
[Desktop Entry] | ||
Version=3.1 | ||
Version=1.0 | ||
Name=SnapPy | ||
GenericName=Manifold browser | ||
Comment=Study hyperbolic 3-manifolds. | ||
MimeType=; | ||
Exec=/home/culler/venv/bin/python3 -m snappy.app | ||
Exec=/usr/bin/env python3 -m snappy.app | ||
Icon=SnapPy | ||
Type=Application | ||
Terminal=false | ||
Categories=Utility;Application;Math; | ||
Categories=Science | ||
StartupWMClass=snappy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -295,7 +295,7 @@ def __init__(self, data, accuracy=None, precision=None): | |
self.accuracy = self.decimal_precision | ||
else: | ||
if accuracy is None: | ||
accuracy = prec_words_to_dec(self.gen.sizeword()) | ||
accuracy = prec_bits_to_dec(64 * self.gen.sizeword()) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
culler
via email
Author
Member
|
||
self.accuracy = min(accuracy, self.decimal_precision) | ||
self._parent = SnapPyNumbers(self._precision) | ||
if _within_sage: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@culler I don't think this is ok. What is wrong with
self.gen.precision()
?Example:
There you have precision in decimal digits, bit precision, and size in words. The relation between bit precision and size in words is implementation defined so better use the functions provided by pari. Because if they change the implementation, they will change these functions.