optimum wrote:
SOrry, just started python programming. I have so much to learn still.
My output was
What is the value of xmin?-2.5
What is the value of dx?0.5
What is the value of nx?11
-2.5
-2.0
-1.5
-1.0
-0.5
0.0
0.5
1.0
1.5
2.0
2.5
Please choose a scale for your plot50
*
I think I called th
I dont think that this program uses the gaussian function, am I in the right
wavelength?
from __future__ import division
import math
a=raw_input("What is the value of xmin?")
b=raw_input("What is the value of dx?")
c=raw_input("What is the value of nx?")
xmin=float(a)
dx=float(b)
nx=int(c)
n=i
SOrry, just started python programming. I have so much to learn still.
My output was
What is the value of xmin?-2.5
What is the value of dx?0.5
What is the value of nx?11
-2.5
-2.0
-1.5
-1.0
-0.5
0.0
0.5
1.0
1.5
2.0
2.5
Please choose a scale for your plot50
*
I think I called the functions now..
optimum wrote:
Hey. Is there anyone who can give me some help?
Below is the question I was set.
This sounds like a homework assignment. We don't write programs for
assignments. We offer help after you give it your best effort.
I am having trouble with the gaussian function and don't really k
Hey. Is there anyone who can give me some help?
I am having trouble with the gaussian function and don't really know where
to start.
Below is the question I was set.
"Write a program which asks the user for values
of xmin, dx and nx. The program should then
output a plot of the gaussian function