如何为复杂的数学方程创建Java GUI程序 [英] How to create Java GUI program for complex mathematical equations

查看:145
本文介绍了如何为复杂的数学方程创建Java GUI程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在通过Java AWT&摇摆,并了解如何创建基本的GUI元素,并且我能够使用它来处理一些程序。但是当我试图了解如何为一些复杂的数学公式创建图时,我无法找到一些文档或任何示例。 - 如何求解三角方程cos(πθ/β)-cos(2πθ/β)= 0?



用户给出了一些复杂的方程和也显示了这些图表的样子。



但是我们怎样才能为这个等式编写一个Java程序来生成图形GUI作为输出呢?



有人可以请我指点一些文档或链接,以便我能够理解如何在Java中实现这一点?



我有类似的问题,通过这些链接了解如何在Java中创建GUI:

$ b

$ b < 方程5((θ/β)--cos(2πθ/β))的Java Swing GUI



I am going through Java AWT & Swings and came to know on how to create the basic GUI elements and I was able to work on some programs with it. But when I am trying to understand how to create Graphs for some complex mathematical equations then I was not able to find some documentation or any examples.

For example, in this post - How to solve the trigonometric equation cos(πθ/β)−cos(2πθ/β)=0?

the user has given some complex equation and also shown how the graphs looks like.

But how can we write a Java program for this equation that generates the graph GUI as output?

Can someone please point me to some documentation or links so that I can understand how to achieve this in Java?

Thanks in advance.

解决方案

I had similar question on this, go through these links to understand how to create the GUI in Java:

Java Swing GUI for equation 5((θ/β) - cos(2πθ/β))

Java Swing GUI for equation 5((θ/β) - cos(2πθ/β)) - to draw continuous graph

这篇关于如何为复杂的数学方程创建Java GUI程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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