vpython-wx icon indicating copy to clipboard operation
vpython-wx copied to clipboard

The ldexp function

Open BruceSherwood opened this issue 10 years ago • 2 comments

There is code at the start of visual_all.py that tries to make sure that sqrt(x) uses the math function rather than the numpy function if x is a simple float, because the numpy version is surprisingly slow if x isn't a numpy array. This code seems to assume that all the treated functions take one argument, but in fact ldexp and frexp take two arguments. Probably these two function should simply be eliminated from the special treatment in visual_all.py.

BruceSherwood avatar Nov 29 '14 05:11 BruceSherwood

Does this mean that the functions simply need to be removed from the tuple literal on lines 43-45?

solumos avatar Feb 04 '15 01:02 solumos

I don't know. It should be tried.

BruceSherwood avatar Feb 04 '15 04:02 BruceSherwood