数学相关

数学运算符

  1. Base.:-(::Any)
  2. Base.:(+)
  3. Base.:-(::Any, ::Any)
  4. Base.:*(::Any, ::Any...)
  5. Base.:(/)
  6. Base.:\(::Any, ::Any)
  7. Base.:^(::Number, ::Number)
  8. Base.fma
  9. Base.muladd
  10. Base.inv(::Number)
  11. Base.div
  12. Base.fld
  13. Base.cld
  14. Base.mod
  15. Base.rem
  16. Base.rem2pi
  17. Base.Math.mod2pi
  18. Base.divrem
  19. Base.fldmod
  20. Base.fld1
  21. Base.mod1
  22. Base.fldmod1
  23. Base.:(//)
  24. Base.rationalize
  25. Base.numerator
  26. Base.denominator
  27. Base.:(<<)
  28. Base.:(>>)
  29. Base.:(>>>)
  30. Base.bitrotate
  31. Base.:(:)
  32. Base.range
  33. Base.OneTo
  34. Base.StepRangeLen
  35. Base.:(==)
  36. Base.:(!=)
  37. Base.:(!==)
  38. Base.:(<)
  39. Base.:(<=)
  40. Base.:(>)
  41. Base.:(>=)
  42. Base.cmp
  43. Base.:(~)
  44. Base.:(&)
  45. Base.:(|)
  46. Base.xor
  47. Base.nand
  48. Base.nor
  49. Base.:(!)
  50. &&
  51. ||

数学函数

  1. Base.isapprox
  2. Base.sin(::Number)
  3. Base.cos(::Number)
  4. Base.sincos(::Float64)
  5. Base.tan(::Number)
  6. Base.Math.sind
  7. Base.Math.cosd
  8. Base.Math.tand
  9. Base.Math.sincosd
  10. Base.Math.sinpi
  11. Base.Math.cospi
  12. Base.Math.sincospi
  13. Base.sinh(::Number)
  14. Base.cosh(::Number)
  15. Base.tanh(::Number)
  16. Base.asin(::Number)
  17. Base.acos(::Number)
  18. Base.atan(::Number)
  19. Base.Math.asind
  20. Base.Math.acosd
  21. Base.Math.atand
  22. Base.Math.sec(::Number)
  23. Base.Math.csc(::Number)
  24. Base.Math.cot(::Number)
  25. Base.Math.secd
  26. Base.Math.cscd
  27. Base.Math.cotd
  28. Base.Math.asec(::Number)
  29. Base.Math.acsc(::Number)
  30. Base.Math.acot(::Number)
  31. Base.Math.asecd
  32. Base.Math.acscd
  33. Base.Math.acotd
  34. Base.Math.sech(::Number)
  35. Base.Math.csch(::Number)
  36. Base.Math.coth(::Number)
  37. Base.asinh(::Number)
  38. Base.acosh(::Number)
  39. Base.atanh(::Number)
  40. Base.Math.asech(::Number)
  41. Base.Math.acsch(::Number)
  42. Base.Math.acoth(::Number)
  43. Base.Math.sinc
  44. Base.Math.cosc
  45. Base.Math.deg2rad
  46. Base.Math.rad2deg
  47. Base.Math.hypot
  48. Base.log(::Number)
  49. Base.log(::Number, ::Number)
  50. Base.log2
  51. Base.log10
  52. Base.log1p
  53. Base.Math.frexp
  54. Base.exp(::Float64)
  55. Base.exp2
  56. Base.exp10
  57. Base.Math.ldexp
  58. Base.Math.modf
  59. Base.expm1
  60. Base.round(::Type, ::Any)
  61. Base.Rounding.RoundingMode
  62. Base.Rounding.RoundNearest
  63. Base.Rounding.RoundNearestTiesAway
  64. Base.Rounding.RoundNearestTiesUp
  65. Base.Rounding.RoundToZero
  66. Base.Rounding.RoundFromZero
  67. Base.Rounding.RoundUp
  68. Base.Rounding.RoundDown
  69. Base.round(::Complex{<: AbstractFloat}, ::RoundingMode, ::RoundingMode)
  70. Base.ceil
  71. Base.floor
  72. Base.trunc
  73. Base.unsafe_trunc
  74. Base.min
  75. Base.max
  76. Base.minmax
  77. Base.Math.clamp
  78. Base.Math.clamp!
  79. Base.abs
  80. Base.Checked.checked_abs
  81. Base.Checked.checked_neg
  82. Base.Checked.checked_add
  83. Base.Checked.checked_sub
  84. Base.Checked.checked_mul
  85. Base.Checked.checked_div
  86. Base.Checked.checked_rem
  87. Base.Checked.checked_fld
  88. Base.Checked.checked_mod
  89. Base.Checked.checked_cld
  90. Base.Checked.add_with_overflow
  91. Base.Checked.sub_with_overflow
  92. Base.Checked.mul_with_overflow
  93. Base.abs2
  94. Base.copysign
  95. Base.sign
  96. Base.signbit
  97. Base.flipsign
  98. Base.sqrt(::Real)
  99. Base.isqrt
  100. Base.Math.cbrt
  101. Base.real(::Complex)
  102. Base.imag
  103. Base.reim
  104. Base.conj
  105. Base.angle
  106. Base.cis
  107. Base.cispi
  108. Base.binomial
  109. Base.factorial
  110. Base.gcd
  111. Base.lcm
  112. Base.gcdx
  113. Base.ispow2
  114. Base.nextpow
  115. Base.prevpow
  116. Base.nextprod
  117. Base.invmod
  118. Base.powermod
  119. Base.ndigits
  120. Base.add_sum
  121. Base.widemul
  122. Base.Math.evalpoly
  123. Base.Math.@evalpoly
  124. Base.FastMath.@fastmath

自定义二元运算符

某些 unicode 字符可用于定义新的支持中缀表示法的二元运算符。 例如, ⊗(x,y) = kron(x,y) 定义 (otimes) 为 Kronecker 积, 并且可以通过中缀语法将它作为一个二元运算符调用: C = A ⊗ B 也可以使用常用的前缀语法 C = ⊗(A,B)

其他支持这种扩展的字符包括 \odot 和 \oplus

The complete list is in the parser code: https://github.com/JuliaLang/julia/blob/master/src/julia-parser.scm

* 一样解析的包括(按优先级排列) * / ÷ % & ⋅ ∘ × |\\| ∩ ∧ ⊗ ⊘ ⊙ ⊚ ⊛ ⊠ ⊡ ⊓ ∗ ∙ ∤ ⅋ ≀ ⊼ ⋄ ⋆ ⋇ ⋉ ⋊ ⋋ ⋌ ⋏ ⋒ ⟑ ⦸ ⦼ ⦾ ⦿ ⧶ ⧷ ⨇ ⨰ ⨱ ⨲ ⨳ ⨴ ⨵ ⨶ ⨷ ⨸ ⨻ ⨼ ⨽ ⩀ ⩃ ⩄ ⩋ ⩍ ⩎ ⩑ ⩓ ⩕ ⩘ ⩚ ⩜ ⩞ ⩟ ⩠ ⫛ ⊍ ▷ ⨝ ⟕ ⟖ ⟗+ 一样解析的包括 + - |\|| ⊕ ⊖ ⊞ ⊟ |++| ∪ ∨ ⊔ ± ∓ ∔ ∸ ≏ ⊎ ⊻ ⊽ ⋎ ⋓ ⧺ ⧻ ⨈ ⨢ ⨣ ⨤ ⨥ ⨦ ⨧ ⨨ ⨩ ⨪ ⨫ ⨬ ⨭ ⨮ ⨹ ⨺ ⩁ ⩂ ⩅ ⩊ ⩌ ⩏ ⩐ ⩒ ⩔ ⩖ ⩗ ⩛ ⩝ ⩡ ⩢ ⩣ 还有许多其他的与箭头、比较和幂相关的符号。