File: python.py

package info (click to toggle)
qcodeeditor 1.0%2B1gitdc644d-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 520 kB
  • sloc: cpp: 2,502; xml: 731; python: 11; makefile: 9
file content (14 lines) | stat: -rw-r--r-- 198 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import numpy

def sqr_array(x):
  '''
  Documentation for sqr_array.
  A multi line string!'
  '''
  
  return np.array(x)**2

s = 'this is a string'
d = 10
x = np.arange(0,d,d/10)
y = sqr_array(x)