Re: [Numpy-discussion] How to use user input as equation directly

2016-10-27 Thread djxvillain
That worked perfectly. I've been googling how to do this, I guess I didn't phrase it correctly. Thank you very much. You just saved me a ton of time. -- View this message in context: http://numpy-discussion.10968.n7.nabble.com/How-to-use-user-input-as-equation-directly-tp43665p43667.html

[Numpy-discussion] How to use user input as equation directly

2016-10-27 Thread djxvillain
Hello all, I am an electrical engineer and new to numpy. I need the ability to take in user input, and use that input as a variable. For example: t = input('enter t: ') x = input('enter x: ') I need the user to be able to enter something like x = 2*np.sin(2*np.pi*44100*t+np.pi/2) and it be

Re: [Numpy-discussion] How to use user input as equation directly

2016-10-27 Thread djxvillain
This will not be a public product and will only be used by other engineers/scientists for research. I don't think security should be a huge issue, but I appreciate your input and concern for the quality of my code. -- View this message in context: