Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python how to vectorize a function

import numpy as np
import math
from math import *


def h_scalar(x):
    return (1 / sqrt(2 * pi)) * exp(-.50** x ** 2.00)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #vectorize #function
ADD COMMENT
Topic
Name
9+5 =