首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > 对于java复数

对于java复数

  • 资源大小:63.10 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: java 对于 复数

资 源 简 介

This library provides a complex number type that supports arithmetic operations and square root, exponential and logarithm functions. The internal representation of complex numbers is based on a formal sum of real and imaginary parts, and the implementation of arithmetic operations and functions is based on the correct numerical algorithms. Two main components of the library are the Complex and the Expression classes. The Complex class represents a complex number with double-precision real and imaginary parts and defines methods for arithmetic operations (addition, subtraction, multiplication and division), conjugation, square root, logarithm and exponentiation. ``` Complex u = Complex.real( 1.23 ); // 1.23 Complex v = Complex.imaginary( 2.34 ); // 2.34i Complex w = Complex.cartesian( 3.45, 4.56 ); // 3.45+4.56i Complex p = Complex.polar( 4.0, Math.PI/6.0 ); // approximately 3.46+2.0i

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
  • 11 2小时前 成为了本站会员

  • 开心快活人 5小时前 成为了本站会员

  • 晋财 6小时前 成为了本站会员

  • WYG 1天前 成为了本站会员

  • Shine 1天前 成为了本站会员

  • 柳贻 1天前 成为了本站会员

  • hallelujah_HL 1天前 成为了本站会员

  • 焦昱贺 1天前 成为了本站会员

  • Rubin 1天前 成为了本站会员

  • Li 2天前 成为了本站会员

0.494064s