There are some CRAZY bugs! I'll change this compute engine later! English ZB Mathematica Kernel (V1.0.0) The precision of complex number calculation is 100 bits, and the precision of real number calculation is infinite There may be a bug. Will be connected to automatic differentiation (without simplification), equation solving engine, and CAS for mentally disabled individuals If there were infinite precision complex calculations, it would be 999 good! *Introduction to Works* ZB Mathematics Kernel is the new kernel of ZB Mathematics. Copyright SQY. This project is original by SQY and belongs to the Beta Path project. Please do not reprint without permission! Currently, it supports high-precision computation of complex numbers (100 bits), high-precision real numbers, and infinite precision integer calculations. We have adopted some special algorithms that can return an accurate value of 2 ^ 1000 within 0.1 seconds, 2 ^ 10000 within 10 seconds, and 2 ^ 100000 within 1 minute. The division algorithm references 52525rr. Core code 9500+ Advantages Supports high-precision complex calculations Input highlight, error reminder, modification method, accuracy warning LaTeX uniform width font 999 looks good Special Grammar Enter ‘prec’ to view the current accuracy, default to 150 bits Enter ‘setprec (<??>)’ to set the accuracy Algorithm Introduction multiplication The efficiency of array multiplication is second only to FFT, and it is only lower than karatsuba when the number of multiplier digits is greater than 10000. power Fast exponentiation, first find all numbers that can square themselves, recursively calculate If 2 ^ 36. calculates (((((2 ^ 2) ^ 2) ^ 2) ^ 2) ^ 2)=2 ^ 32, 5 times of multiplication need to be calculated To recalculate (2 ^ 2) ^ 2=2 ^ 4, it is necessary to calculate twice the multiplication Multiplying the two calculation results yields 2 ^ 36, which requires a total of 8 multiplications logarithm First convert it to Scientific notation, move the decimal point, then scale the number to 1~2, look up the table once, and then expand the calculation --------------------------------------------------------- 简体中文 ZB Mathematica Kernel (V1.0.0) 复数计算精度100位,实数计算精度无限 可能有bog(sqrt函数一定有) 将会接入自动求导(没有化简),方程求解引擎,弱智级CAS 要是有无限精度复数计算就999香了 作品介绍 ZB Mathematica Kernel 是ZB Mathematica(装B数学)的新内核。 SQY版权所有。此项目为SQY原创,属于Beta-Math项目。Copyright (c) SQY 未经允许,请勿转载! 目前支持复数高精度计算(100位),高精度实数和无限精度整数计算。采用了一些特殊算法,0.1秒内可返回2^1000的精确值,10秒内可返回2^10000的精确值,1分钟内可返回2^100000的精确值,除法算法参考了52525rr的。 核心代码9500+ Ta 的优点 支持高精度复数计算 输入高亮,错误提醒,修改方法,精度警告 LaTeX等宽字体999好看 特殊语法 输入prec查看当前精度,默认150位 输入setprec(<???>)可以设置精度 算法介绍 乘法 数组乘法,效率仅次于FFT,当乘数位数大于10000的时候,效率才低于karatsuba。 幂 快速幂,先找到所有可以自己平方的数,递归计算 如2^36.计算(((((2^2)^2)^2)^2)^2)=2^32,需计算5次乘法 再计算(2^2)^2=2^4,需计算2次乘法 将两次计算结果相乘,得到2^36,一共需要8次乘法. 对数 先化为科学计数法,移动小数点,再将数缩放至1~2内,查一次表,再展开
除法算法参考了52525rr的 乘法没有FFT,不要计算像114514^1919810这样的东西 只用了画笔扩展