Search:
Login
Preferences
Help/Guide
About Trac
Wiki
Timeline
Roadmap
View Tickets
Search
Context Navigation
Back to Ticket #10668
Ticket #10668
: test1.py
File test1.py,
219 bytes
(added by Roman Tolchenov,
6 years
ago)
Line
1
import
numpy
as
np
2
x
=
np
.
concatenate
(
(
np
.
linspace
(
-
3
,
0
,
51
),
np
.
linspace
(
0
,
3
,
76
)[
1
:])
)
3
xc
=
(
x
[:
-
1
]
+
x
[
1
:]
)
/
2
4
5
y
=
np
.
exp
(
-
xc
**
2
*
2
)
6
y
[
50
:]
/=
1.5
7
8
e
=
np
.
ones_like
(
y
)
9
10
ws
=
CreateWorkspace
(
x
,
y
,
e
)
Download in other formats:
Original Format