All Samples(994) | Call(796) | Derive(0) | Import(198)
acos(x) Return the arc cosine (measured in radians) of x.
src/p/y/pycppad-HEAD/example/std_math.py pycppad(Download)
a_x = ad(x) # all the a_float unary standard math functions assert abs( arccos(a_x) - math.acos(x) ) < delta assert abs( arcsin(a_x) - math.asin(x) ) < delta assert abs( arctan(a_x) - math.atan(x) ) < delta assert abs( cos(a_x) - math.cos(x) ) < delta
a2x = ad(ad(x)) # all the a2float unary standard math functions assert abs( arccos(a2x) - math.acos(x) ) < delta assert abs( arcsin(a2x) - math.asin(x) ) < delta assert abs( arctan(a2x) - math.atan(x) ) < delta assert abs( cos(a2x) - math.cos(x) ) < delta
src/d/i/divisi-HEAD/doc/examples/mds.py divisi(Download)
import orange import orngMDS import numpy as np from math import acos as _acos from csc.divisi.tensor import DenseTensor from csc.divisi.view import LabeledView
def acos(x):
if x > 1: return _acos(1)
if x < -1: return _acos(-1)
return _acos(x)
concept_labels = aspace.weighted_u.label_list(0)
src/d/i/Divisi-0.6.10/doc/examples/mds.py Divisi(Download)
import orange import orngMDS import numpy as np from math import acos as _acos from csc.divisi.tensor import DenseTensor from csc.divisi.view import LabeledView
def acos(x):
if x > 1: return _acos(1)
if x < -1: return _acos(-1)
return _acos(x)
concept_labels = aspace.weighted_u.label_list(0)
src/s/e/semanticsbml-HEAD/trunk/trash/sbml2dot_sbmlmergemath.py semanticsbml(Download)
libsbml.AST_FUNCTION_ARCSIN: math.asin,
libsbml.AST_FUNCTION_ARCCOS: math.acos,
libsbml.AST_FUNCTION_ARCTAN: math.atan,
libsbml.AST_FUNCTION_ARCCOT: lambda x: math.acos(x / math.sqrt(1 + x**2)),
libsbml.AST_FUNCTION_ARCSEC: lambda x: 1 / math.acos(x),
libsbml.AST_FUNCTION_ARCCSC: lambda x: 1 / math.asin(x),
libsbml.AST_FUNCTION_ARCSINH: lambda x: math.log(x + math.sqrt(x**2 + 1)),
src/s/e/semanticsbml-HEAD/trash/sbml2dot_sbmlmergemath.py semanticsbml(Download)
libsbml.AST_FUNCTION_ARCSIN: math.asin,
libsbml.AST_FUNCTION_ARCCOS: math.acos,
libsbml.AST_FUNCTION_ARCTAN: math.atan,
libsbml.AST_FUNCTION_ARCCOT: lambda x: math.acos(x / math.sqrt(1 + x**2)),
libsbml.AST_FUNCTION_ARCSEC: lambda x: 1 / math.acos(x),
libsbml.AST_FUNCTION_ARCCSC: lambda x: 1 / math.asin(x),
libsbml.AST_FUNCTION_ARCSINH: lambda x: math.log(x + math.sqrt(x**2 + 1)),
src/i/r/ironruby-HEAD/External.LCA_RESTRICTED/Languages/IronPython/27/Lib/random.py ironruby(Download)
from warnings import warn as _warn from types import MethodType as _MethodType, BuiltinMethodType as _BuiltinMethodType from math import log as _log, exp as _exp, pi as _pi, e as _e, ceil as _ceil from math import sqrt as _sqrt, acos as _acos, cos as _cos, sin as _sin from os import urandom as _urandom from binascii import hexlify as _hexlify
u3 = random()
if u3 > 0.5:
theta = (mu % TWOPI) + _acos(f)
else:
theta = (mu % TWOPI) - _acos(f)
src/i/r/ironruby-HEAD/External.LCA_RESTRICTED/Languages/CPython/27/Lib/random.py ironruby(Download)
from warnings import warn as _warn from types import MethodType as _MethodType, BuiltinMethodType as _BuiltinMethodType from math import log as _log, exp as _exp, pi as _pi, e as _e, ceil as _ceil from math import sqrt as _sqrt, acos as _acos, cos as _cos, sin as _sin from os import urandom as _urandom from binascii import hexlify as _hexlify
u3 = random()
if u3 > 0.5:
theta = (mu % TWOPI) + _acos(f)
else:
theta = (mu % TWOPI) - _acos(f)
src/h/e/heatsource-HEAD/src/Stream/PyHeatsource.py heatsource(Download)
from __future__ import division from math import pow, sqrt, sin, log, atan, sin, cos, pi, tan, acos, exp,radians, degrees, log10 from random import randint from bisect import bisect class HeatSourceError(Exception): pass
elif Dummy < -1.0:
Dummy = -1.0
Zenith = toDegrees*(acos(Dummy))
Dummy = cos(toRadians*lat) * sin(toRadians*Zenith)
if abs(Dummy) >= 0.000999:
Azimuth = (sin(toRadians*lat) * cos(toRadians*Zenith) - sin(toRadians*Declination)) / Dummy
if abs(Azimuth) > 1.0:
if Azimuth < 0:
Azimuth = -1.0
else:
Azimuth = 1.0
Azimuth = 180 - toDegrees*(acos(Azimuth))
src/x/i/xia2-HEAD/xia2/Modules/CellRefImageSelect.py xia2(Download)
pi = 4.0 * math.atan(1.0)
angle_a = 0.5 * pi - math.acos(dot_a / length_a)
angle_b = 0.5 * pi - math.acos(dot_b / length_b)
angle_c = 0.5 * pi - math.acos(dot_c / length_c)
length_b = math.sqrt(dot(b, b))
length_c = math.sqrt(dot(c, c))
angle_a = math.acos(dot_a / length_a)
angle_b = math.acos(dot_b / length_b)
angle_c = math.acos(dot_c / length_c)
rtod = 180.0 / math.pi
angle_a = math.fabs(90.0 - rtod * math.acos(dot_a / length_a))
angle_b = math.fabs(90.0 - rtod * math.acos(dot_b / length_b))
angle_c = math.fabs(90.0 - rtod * math.acos(dot_c / length_c))
rtod = 180.0 / math.pi
angle_a = math.fabs(90.0 - rtod * math.acos(dot_a / length_a))
angle_b = math.fabs(90.0 - rtod * math.acos(dot_b / length_b))
angle_c = math.fabs(90.0 - rtod * math.acos(dot_c / length_c))
rtod = 180.0 / math.pi
angle_a = math.fabs(90.0 - rtod * math.acos(dot_a / length_a))
angle_b = math.fabs(90.0 - rtod * math.acos(dot_b / length_b))
angle_c = math.fabs(90.0 - rtod * math.acos(dot_c / length_c))
rtod = 180.0 / math.pi
angle_a = math.fabs(rtod * math.acos(dot_a / length_a))
angle_b = math.fabs(rtod * math.acos(dot_b / length_b))
angle_c = math.fabs(rtod * math.acos(dot_c / length_c))
rtod = 180.0 / math.pi
angle_a = math.fabs(rtod * math.acos(dot_a / length_a))
angle_b = math.fabs(rtod * math.acos(dot_b / length_b))
angle_c = math.fabs(rtod * math.acos(dot_c / length_c))
src/x/i/xia2-HEAD/trunk/xia2-research-jiffies/CellRefImageSelect.py xia2(Download)
pi = 4.0 * math.atan(1.0)
angle_a = 0.5 * pi - math.acos(dot_a / length_a)
angle_b = 0.5 * pi - math.acos(dot_b / length_b)
angle_c = 0.5 * pi - math.acos(dot_c / length_c)
length_b = math.sqrt(dot(b, b))
length_c = math.sqrt(dot(c, c))
angle_a = math.acos(dot_a / length_a)
angle_b = math.acos(dot_b / length_b)
angle_c = math.acos(dot_c / length_c)
rtod = 180.0 / math.pi
angle_a = math.fabs(90.0 - rtod * math.acos(dot_a / length_a))
angle_b = math.fabs(90.0 - rtod * math.acos(dot_b / length_b))
angle_c = math.fabs(90.0 - rtod * math.acos(dot_c / length_c))
rtod = 180.0 / math.pi
angle_a = math.fabs(90.0 - rtod * math.acos(dot_a / length_a))
angle_b = math.fabs(90.0 - rtod * math.acos(dot_b / length_b))
angle_c = math.fabs(90.0 - rtod * math.acos(dot_c / length_c))
rtod = 180.0 / math.pi
angle_a = math.fabs(90.0 - rtod * math.acos(dot_a / length_a))
angle_b = math.fabs(90.0 - rtod * math.acos(dot_b / length_b))
angle_c = math.fabs(90.0 - rtod * math.acos(dot_c / length_c))
rtod = 180.0 / math.pi
angle_a = math.fabs(rtod * math.acos(dot_a / length_a))
angle_b = math.fabs(rtod * math.acos(dot_b / length_b))
angle_c = math.fabs(rtod * math.acos(dot_c / length_c))
rtod = 180.0 / math.pi
angle_a = math.fabs(rtod * math.acos(dot_a / length_a))
angle_b = math.fabs(rtod * math.acos(dot_b / length_b))
angle_c = math.fabs(rtod * math.acos(dot_c / length_c))
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 Next