php方程式怎么弄,你怎么解决PHP中的方程式?

我正在寻找PHP中的广义方程求解器.这可以是内置功能,库,甚至是与其他语言集成的形式.我甚至对包含上述内容的联合解决方案感到满意.我需要这个用于我正在工作的教育网站.

让我给出一系列方程式,理想情况下我希望这样一个求解器能够处理:

x+5=8 => x=3

x^2=5 => x=+/-sqrt(5) [exact solution in terms of sqrt, ln, or whatever] AND

x=+/-2.236 [approximate solution to certain number of digits]

x+y=-3 [solve in terms of y] => y=-x-3

x^2=-5 => x=+/5i

x+y=3 and x-y=3 => x=3, y=0

我希望这不是一个太过分的桥梁.如果是这样,我将构建功能,因为每个问题都在内部,但如果有人知道适当的库存在这样的问题,我将非常感激.

解决方法:

从他们的网站上查看Sage:

Sage is a free open-source mathematics software system licensed under the GPL. It combines the power of many existing open-source packages into a common Python-based interface.

Mission: Creating a viable free open source alternative to Magma, Maple, Mathematica and Matlab.

Sage有一个基于AJAX的notebook interface,它可能和你可以在PHP中使用的API一样好.

标签:php,equation

来源: https://codeday.me/bug/20190716/1482112.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值