Java程序改变公式的主题 [英] Java program to change subject of a formula

查看:110
本文介绍了Java程序改变公式的主题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个java程序,它将公式作为输入,并提供编写该公式的所有替代形式。



示例 - 输入(字符串) - v ^ 2 = u ^ 2 + 2 * a * s

输出(字符串)-u ^ 2 = v ^ 2-2 * a * s

a =( v ^ 2-u ^ 2)/ 2 * s

s =(v ^ 2-u ^ 2)/ 2 * a



如果您可以编写一段代码来更改并打印公式的所有替代形式,这将是一个很大的帮助。谢谢。



我尝试了什么:



我搜索但发现改变公式主题的规则。我可以在我的代码中逐个输入所有规则,但它可能是非常时间。

I am trying to make a java program which takes a formula as input and gives all the alternative form for writing that formula.

Example-Input(String)- v^2=u^2+2*a*s
Output(String)-u^2=v^2-2*a*s
a=(v^2-u^2)/2*s
s=(v^2-u^2)/2*a

If you could write a piece of code that changes and prints all the alternative forms of a formula that will be a great help. Thanks.

What I have tried:

I searched but found nothing other than rules to change subject of a formula. I could input all rules one by one in my code but it could be very time taking.

推荐答案

符号计算是一个非常大的复杂的论点,我建议你从相关的维基百科页面开始:符号计算 - 维基百科,免费的百科全书 [< a href =https://en.wikipedia.org/wiki/Symbolic_computationtarget =_ blanktitle =New Window> ^ ]。
Symbolic computation is a quite large and complex argument, I suggest you to start with the related Wikipedia's page: "Symbolic computation - Wikipedia, the free encyclopedia"[^].


这篇关于Java程序改变公式的主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆