-- Testcases for functions in cmath.
--
-- Each line takes the form:
--
-- <testid> <function> <input_value> -> <output_value> <flags>
--
-- where:
--
-- <testid> is a short name identifying the test,
--
-- <function> is the function to be tested (exp, cos, asinh, ...),
--
-- <input_value> is a pair of floats separated by whitespace
-- representing real and imaginary parts of a complex number, and
--
-- <output_value> is the expected (ideal) output value, again
-- represented as a pair of floats.
--
-- <flags> is a list of the floating-point flags required by C99
--
-- The possible flags are:
--
-- divide-by-zero : raised when a finite input gives a
-- mathematically infinite result.
--
-- overflow : raised when a finite input gives a finite result whose
-- real or imaginary part is too large to fit in the usual range
-- of an IEEE 754 double.
--
-- invalid : raised for invalid inputs.
--
-- ignore-real-sign : indicates that the sign of the real part of
-- the result is unspecified; if the real part of the result is
-- given as inf, then both -inf and inf should be accepted as
-- correct.
--
-- ignore-imag-sign : indicates that the sign of the imaginary part
-- of the result is unspecified.
--
-- Flags may appear in any order.
--
-- Lines beginning with '--' (like this one) start a comment, and are
-- ignored. Blank lines, or lines containing only whitespace, are also
-- ignored.
-- The majority of the values below were computed with the help of
-- version 2.3 of the MPFR library for multiple-precision
-- floating-point computations with correct rounding. All output
-- values in this file are (modulo yet-to-be-discovered bugs)
-- correctly rounded, provided that each input and output decimal
-- floating-point value below is interpreted as a representation of
-- the corresponding nearest IEEE 754 double-precision value. See the
-- MPFR homepage at http://www.mpfr.org for more information about the
-- MPFR project.
--------------------------
-- acos: Inverse cosine --
--------------------------
-- zeros
acos0000 acos 0.0 0.0 -> 1.5707963267948966 -0.0
acos0001 acos 0.0 -0.0 -> 1.5707963267948966 0.0
acos0002 acos -0.0 0.0 -> 1.5707963267948966 -0.0
acos0003 acos -0.0 -0.0 -> 1.5707963267948966 0.0
-- branch points: +/-1
acos0010 acos 1.0 0.0 -> 0.0 -0.0
acos0011 acos 1.0 -0.0 -> 0.0 0.0
acos0012 acos -1.0 0.0 -> 3.1415926535897931 -0.0
acos0013 acos -1.0 -0.0 -> 3.1415926535897931 0.0
-- values along both sides of real axis
acos0020 acos -9.8813129168249309e-324 0.0 -> 1.5707963267948966 -0.0
acos0021 acos -9.8813129168249309e-324 -0.0 -> 1.5707963267948966 0.0
acos0022 acos -1e-305 0.0 -> 1.5707963267948966 -0.0
acos0023 acos -1e-305 -0.0 -> 1.5707963267948966 0.0
acos0024 acos -1e-150 0.0 -> 1.5707963267948966 -0.0
acos0025 acos -1e-150 -0.0 -> 1.5707963267948966 0.0
acos0026 acos -9.9999999999999998e-17 0.0 -> 1.5707963267948968 -0.0
acos0027 acos -9.9999999999999998e-17 -0.0 -> 1.5707963267948968 0.0
acos0028 acos -0.001 0.0 -> 1.5717963269615634 -0.0
acos0029 acos -0.001 -0.0 -> 1.5717963269615634 0.0
acos0030 acos -0.57899999999999996 0.0 -> 2.1882979816120667 -0.0
acos0031 acos -0.57899999999999996 -0.0 -> 2.1882979816120667 0.0
acos0032 acos -0.99999999999999989 0.0 -> 3.1415926386886319 -0.0
acos0033 acos -0.99999999999999989 -0.0 -> 3.1415926386886319 0.0
acos0034 acos -1.0000000000000002 0.0 -> 3.1415926535897931 -2.1073424255447014e-08
acos0035 acos -1.0000000000000002 -0.0 -> 3.1415926535897931 2.1073424255447014e-08
acos0036 acos -1.0009999999999999 0.0 -> 3.1415926535897931 -0.044717633608306849
acos0037 acos -1.0009999999999999 -0.0 -> 3.1415926535897931 0.044717633608306849
acos0038 acos -2.0 0.0 -> 3.1415926535897931 -1.3169578969248168
acos0039 acos -2.0 -0.0 -> 3.1415926535897931 1.3169578969248168
acos0040 acos -23.0 0.0 -> 3.1415926535897931 -3.8281684713331012
acos0041 acos -23.0 -0.0 -> 3.1415926535897931 3.8281684713331012
acos0042 acos -10000000000000000.0 0.0 -> 3.1415926535897931 -37.534508668464674
acos0043 acos -10000000000000000.0 -0.0 -> 3.1415926535897931 37.534508668464674
acos0044 acos -9.9999999999999998e+149 0.0 -> 3.1415926535897931 -346.08091112966679
acos0045 acos -9.9999999999999998e+149 -0.0 -> 3.1415926535897931 346.08091112966679
acos0046 acos -1.0000000000000001e+299 0.0 -> 3.1415926535897931 -689.16608998577965
acos0047 acos -1.0000000000000001e+299 -0.0 -> 3.1415926535897931 689.16608998577965
acos0048 acos 9.8813129168249309e-324 0.0 -> 1.5707963267948966 -0.0
acos0049 acos 9.8813129168249309e-324 -0.0 -> 1.5707963267948966 0.0
acos0050 acos 1e-305 0.0 -> 1.5707963267948966 -0.0
acos0051 acos 1e-305 -0.0 -> 1.5707963267948966 0.0
acos0052 acos 1e-150 0.0 -> 1.5707963267948966 -0.0
acos0053 acos 1e-150 -0.0 -> 1.5707963267948966 0.0
acos0054 acos 9.9999999999999998e-17 0.0 -> 1.5707963267948966 -0.0
acos0055 acos 9.9999999999999998e-17 -0.0 -> 1.5707963267948966 0.0
acos0056 acos 0.001 0.0 -> 1.56979632662823 -0.0
acos0057 acos 0.001 -0.0 -> 1.56979632662823 0.0
acos0058 acos 0.57899999999999996 0.0 -> 0.95329467197772655 -0.0
acos0059 acos 0.57899999999999996 -0.0 -> 0.95329467197772655 0.0
acos0060 acos 0.99999999999999989 0.0 -> 1.4901161193847656e-08 -0.0
acos0061 acos 0.99999999999999989 -0.0 -> 1.4901161193847656e-08 0.0
acos0062 acos 1.0000000000000002 0.0 -> 0.0 -2.1073424255447014e-08
acos0063 acos 1.0000000000000002 -0.0 -> 0.0 2.1073424255447014e-08
acos0064 acos 1.0009999999999999 0.0 -> 0.0 -0.044717633608306849
acos0065 acos 1.0009999999999999 -0.0 -> 0.0 0.044717633608306849
acos0066 acos 2.0 0.0 -> 0.0 -1.3169578969248168
acos0067 acos 2.0 -0.0 -> 0.0 1.3169578969248168
acos0068 acos 23.0 0.0 -> 0.0 -3.8281684713331012
acos0069 acos 23.0 -0.0 -> 0.0 3.8281684713331012
acos0070 acos 10000000000000000.0 0.0 -> 0.0 -37.534508668464674
acos0071 acos 10000000000000000.0 -0.0 -> 0.0 37.534508668464674
acos0072 acos 9.9999999999999998e+149 0.0 -> 0.0 -346.08091112966679
acos0073 acos 9.9999999999999998e+149 -0.0 -> 0.0 346.08091112966679
acos0074 acos 1.0000000000000001e+299 0.0 -> 0.0 -689.16608998577965
acos0075 acos 1.0000000000000001e+299 -0.0 -> 0.0 689.16608998577965
-- random inputs
acos0100 acos -3.3307113324596682 -10.732007530863266 -> 1.8706085694482339 3.113986806554613
acos0101 acos -2863.952991743291 -2681013315.2571239 -> 1.5707973950301699 22.402607843274758
acos0102 acos -0.33072639793220088 -0.85055464658253055 -> 1.8219426895922601 0.79250166729311966
acos0103 acos -2.5722325842097802 -12.703940809821574 -> 1.7699942413107408 3.2565170156527325
acos0104 acos -42.495233785459583 -0.54039320751337161 -> 3.1288732573153304 4.4424815519735601
acos0105 acos -1.1363818625856401 9641.1325498630376 -> 1.5709141948820049 -9.8669410553254284
acos0106 acos -2.4398426824157866e-11 0.33002051890266165 -> 1.570796326818066 -0.32430578041578667
acos0107 acos -1.3521340428186552 2.9369737912076772 -> 1.9849059192339338 -1.8822893674117942
acos0108 acos -1.827364706477915 1.0355459232147557 -> 2.5732246307960032 -1.4090688267854969
acos0109 acos -0.25978373706403546 10.09712669185833 -> 1.5963940386378306 -3.0081673050196063
acos0110 acos 0.33561778471072551 -4587350.6823999118 -> 1.5707962536333251 16.031960402579539
acos0111 acos 0.49133444610998445 -0.8071422362990015 -> 1.1908761712801788 0.78573345813187867
acos0112 acos 0.42196734507823974 -2.4812965431745115 -> 1.414091186100692 1.651707260988172
acos0113 acos 2.961426210100655 -219.03295695248664 -> 1.5572768319822778 6.0824659885827304
acos0114 acos 2.886209063652641 -20.38011207220606 -> 1.4302765252297889 3.718201853147642
acos0115 acos 0.4180568075276509 1.4833433990823484 -> 1.3393834558303042 -1.2079847758301576
acos0116 acos 52.376111405924718 0.013930429001941001 -> 0.00026601761804024188 -4.6515066691204714
acos0117 acos 41637948387.625969 1.563418292894041 -> 3.7547918507883548e-11 -25.145424989809381
acos0118 acos 0.061226659122249526 0.8447234394615154 -> 1.52
没有合适的资源?快使用搜索试试~ 我知道了~
适用于 Java 平台的 Python.zip
共2000个文件
py:1568个
java:305个
txt:114个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 144 浏览量
2024-11-25
15:01:26
上传
评论
收藏 53.57MB ZIP 举报
温馨提示
适用于 Java 平台的 PythonJython用于 Java 平台的 Python 这是 Jython 的开发库,Jython 是 Python 的 Java 实现。目前仅支持 Python 2.7 版本(但请关注 3.x 版本)。兼容性Jython 与 Python 2.7语言具有良好的兼容性。此外,它还包含大量标准库,这些标准库取自较新版本的 CPython(大约 2.7.13)。一些标准库模块具有 Jython 特定的实现,但未能跟上 CPython 的步伐。Jython 2.7 对 Python 生态系统的支持包括对pip/setuptools的内置支持。bin/pip如果目标不包含扩展,则可以使用C。有一个适用于 Windows 的本机启动器 ( bin/jython.exe),其工作方式与python命令基本相同。Jim Baker 在 PyCon 2015 上发表了关于 Jython 2.7 的演讲,包括新功能的演示https://www.youtube.com/watch?v =hLm3garVQFo支持PSF 不再支持 Pyth
资源推荐
资源详情
资源评论
收起资源包目录
适用于 Java 平台的 Python.zip (2000个子文件)
pdb.doc 8KB
readcd.doc 4KB
readcd.doc 4KB
flp.doc 4KB
flp.doc 4KB
test_difflib_expect.html 101KB
sgml_input.html 8KB
gc.java 140KB
PyObject.java 140KB
PyType.java 108KB
PyByteArray.java 104KB
PySystemState.java 78KB
cPickle.java 77KB
_codecs.java 72KB
PosixModule.java 59KB
PyInstance.java 58KB
SRE_STATE.java 47KB
PyFileIODerived.java 45KB
PyRawIOBaseDerived.java 45KB
cmath.java 44KB
binascii.java 44KB
PyIOBaseDerived.java 43KB
struct.java 41KB
PyDefaultDictDerived.java 39KB
ReferenceTypeDerived.java 38KB
combinationsWithReplacementDerived.java 38KB
EncoderDerived.java 38KB
PyBZ2DecompressorDerived.java 38KB
PyDictionary.java 38KB
ScannerDerived.java 38KB
PyBZ2CompressorDerived.java 38KB
PyTeeIteratorDerived.java 38KB
PyStructDerived.java 38KB
permutationsDerived.java 38KB
combinationsDerived.java 38KB
ifilterfalseDerived.java 38KB
zipimporterDerived.java 38KB
izipLongestDerived.java 38KB
PyComplexDerived.java 38KB
PyPartialDerived.java 38KB
dropwhileDerived.java 38KB
takewhileDerived.java 38KB
PyDequeDerived.java 38KB
compressDerived.java 38KB
PyBZ2FileDerived.java 38KB
PyRandomDerived.java 38KB
groupbyDerived.java 38KB
ifilterDerived.java 38KB
productDerived.java 38KB
starmapDerived.java 38KB
isliceDerived.java 38KB
repeatDerived.java 38KB
chainDerived.java 38KB
cycleDerived.java 38KB
countDerived.java 38KB
PyFrozenSetDerived.java 38KB
imapDerived.java 38KB
izipDerived.java 38KB
PyArrayDerived.java 38KB
PyListDerived.java 38KB
PyList.java 38KB
PyShadowStringDerived.java 38KB
PyStringDerived.java 38KB
PyDialectDerived.java 38KB
PyLocalDerived.java 38KB
ClasspathPyImporterDerived.java 38KB
PyBaseExceptionDerived.java 38KB
PyFloat.java 34KB
PyIOBase.java 34KB
Traverseproc.java 34KB
PyMemoryView.java 32KB
Time.java 26KB
JavaProxyList.java 24KB
operator.java 23KB
SkinnyMethodAdapter.java 22KB
JavaProxySet.java 21KB
_marshal.java 21KB
PyDeque.java 21KB
zipimporter.java 19KB
BaseSet.java 18KB
ucnhash.java 18KB
_jyio.java 18KB
DefaultInvokerFactory.java 18KB
_locale.java 17KB
math.java 17KB
PyFileIO.java 17KB
AstList.java 17KB
cStringIO.java 16KB
GlobalRef.java 16KB
HeapMemory.java 16KB
PyFrame.java 16KB
Scanner.java 15KB
_json.java 15KB
_imp.java 14KB
PatternObject.java 14KB
PyBZ2File.java 14KB
BytecodeLoader.java 13KB
Memory.java 13KB
PyReflectedFunction.java 13KB
ExposedTypeProcessor.java 12KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
徐浪老师
- 粉丝: 8253
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- java理财小助手APP源码数据库 SQLITE源码类型 WebForm
- redisio cookbook 的开发存储库.zip
- 基于JSP(MVC模式)和MySQL的网上图书购物系统课程设计
- NTC热敏电阻温度与阻值换算小工具
- RedisDesktopManager Windows 版本.zip
- redis-full-check 用于比较两个 redis 是否有相同的数据 支持 redis 2.x 到 7.x 版本(不支持 Redis Modules) .zip
- Redis 集群的代理 .zip
- 一个字符串小游戏设计实现
- Redis 集群的 Dockerfile(redis 3.0+).zip
- Redis 集群代理.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功