-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Item 16 From Issue #4: Add More Math Functions #36
Comments
This would be good for a future enhancement. |
sinc can be done (sin(x)/x) - providing primitives is what is required - isn't it? |
This may be true but the sinc function as implemented by numerical function libraries ( numpy for example ) make it simple and easy to do. They include more parameters than just X. |
Doug: I agree - but it's a question of where to stop? If you want numpy inside - that might be easier than trying to add every math function possible... http://literature.cdn.keysight.com/litweb/pdf/33500-90901.pdf?id=2197440 They take a standard waveform, and then apply various "advanced math" pieces to it: Some of those are in WaveForms, but I'm not sure we know which are actually used by students/faculity. If you can help be more specific of which you are looking for (since you wrote so many labs) we can look at those, and try to both rank them in order of priority - then we can respond back better with a schedule, and what we think we can do before Dec. Thanks |
You are right there are possibly a huge number of useful signal processing functions that might be included. A lot of the waveform generation software provided by AWG instrument makers include about 6 or 8 of the more common wave functions. But for me in writing ALICE it was easiest to include access to all of the numpy library because it was already being used for other things like doing FFTs in the SA, NA, and IA etc. Providing User access to the functions is trivial with the Python interpreter. In Scopy are these sorts of math functions being re-written from scratch as needed or are you including a pre-written open source library of "numerical" functions? With Scopy being written in C++ I'm guessing it would be harder to build in an interpreter that can parse equations and send to a numerical library. I don't know, that might not be that hard.... The up side of doing this extra level of work is that you can also use this on the scope side to plot signal processing functions applied to measured waveforms as well. Which is where I use the math library the most in the Labs I've developed. Calculating power and energy, taking derivatives, plotting histograms, digital filtering, a whole list of equations. |
Item 16 from Issue #4
"Need a few more math functions like random, sinc ( sin(x)/x ) …."
The text was updated successfully, but these errors were encountered: