Comments (26)
Please post an example that demonstrates such an unsual behaviour, along with the platform and OS you are running under.
from asymptote.
from asymptote.
Could you please attach the Asymptote code and its output.
If by chance you are referring to the POSIX double remainder(double x, double y);
function that Asymptote gives you access to, you are using the wrong function. You want to use the integer
modulo operator % just like in C or C++. If you need integer division, use the operator #.
from asymptote.
P.S. Unlike in C and C++, Asymptote uses a portable implementation definition of %
so that the result has the same sign as the divisor.
from asymptote.
from asymptote.
Nothing got attached. Since your attachments are being rejected, maybe try inserting the code directly in the text box in code mode (apply <> to the region).
from asymptote.
from asymptote.
from asymptote.
As I suspected, you are using real remainder(real, real) for integer arithmetic! That is a big no no in scientific computing, due to finite floating point precision. Use % instead.
Regarding "sys" there is no such Asymptote module; perhaps you are confusing Asymptote with Python.
Anyway, both sleep and usleep are available:
asy
Welcome to Asymptote version 2.90-69 (to view the manual, type help)
> sleep
<void sleep(int seconds)>
> usleep
<void usleep(int microseconds)>
>
from asymptote.
from asymptote.
Do you really need to know the absolute number of milliseconds after the epoch?
Isn't the nanosecond clock in cputime().parent.user or cputime().parent.clock sufficient?
from asymptote.
from asymptote.
from asymptote.
from asymptote.
from asymptote.
https://asymptote.sourceforge.io/doc/Structures.html#index-cputime
from asymptote.
from asymptote.
from asymptote.
What version of Asymptote are you using?
from asymptote.
from asymptote.
gswin64.exe is wrong; it should read gswin64c.exe
Did you override the default setting in your config.asy file, perhaps?
from asymptote.
from asymptote.
from asymptote.
from asymptote.
from asymptote.
from asymptote.
Related Issues (20)
- Documentation of cputime is in Structure section? HOT 1
- Feature suggestion: shorthand to create a picture HOT 9
- Feature suggestion: Remove `add(picture dest, picture src, pair position)` variant as it's dangerous HOT 4
- Stack traceback on error?
- Suggestion: integrate with Typst? HOT 3
- Suggestion: `envelope` type don't need `above` passed in HOT 1
- Why does the bounding box of a frame containing just a label not just the label's bounding box? HOT 1
- Suggestion: transformations for shading tools? HOT 1
- Feature suggestion: baseline specification for inclusion in LaTeX HOT 1
- Grammar railroad diagram HOT 2
- scale command breaks graph output HOT 2
- Most recent commit breaks my build HOT 5
- configure fails to enable readline if ncurses is built with separate tinfo lib and "--as-needed" linker flag is used HOT 5
- Rendering issues (Maybe only on Mac M1?) HOT 4
- [xasy2asy] fix "SyntaxWarning" with python3.12+ HOT 1
- [xasy] migrate to python-pyqt6 HOT 9
- Array variable added with `var` does not trigger creation of array ops
- Missing labels in flattened 3D scene (using settings.render=0) after update to version 2.90. HOT 1
- Tree-sitter grammar HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asymptote.