Display polynomial by using JAVA

[复制链接]
查看11 | 回复1 | 2006-9-6 21:14:23 | 显示全部楼层 |阅读模式
Questions need help.
I would like to use Link List, ADT to display two Polynomials.(in JAVA)
And do the calculation (add, multiply, substract, and derivatives)
Ex:
1. Input the coefficient and exponent to display the polynomial.
( getCoeff();)
( getExpon( ) ;)
use ADT and Link List to display :
f(x)= 5x^9 + 10x^7 +3x^4 -2x^2
q(x)= 4x^9 + 2x^7 +3x^3 -2x +3
2. calculation
add: f(x) + q(x)
sub: f(x) - q(x)
multiply : f(x) * q(x)
derivative: f'(x) and q '(x)
If anyone know how to do that or anyplace I can find the detail information about this. Please let know. Thanks very much!
回复

使用道具 举报

千问 | 2006-9-6 21:14:23 | 显示全部楼层
你是在做作业还是工作中的问题?如果是作业的话,课堂里应该有讲过吧?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行