3D function viewer
Copyright © 2000 KCMSoft
Апплет 3D function viewer представляет собой 3D вьюер для поверхности однозначного
(в математическом смысле) графика функции типа z=f(x,y). График можно
представлять в виде сетки (прозрачный) или в виде непрозрачной поверхности.
Возможны манипуляции с перспективой и цветом.
Средство разработки: MS Visual J++ 1.1
Средства тестирования: MS Personal Web Server (Windows 95 OSR2 v 4.00.950 B),
MSIE 4.0 v.4.72.3110.8, Java VM (MS DevStudio 6.0; Java Language Engine v.6.00.8163),
PC Celeron 433 (RAM 64MB)
После загрузки апплет отображает панель настройки, в которой необходимо задать
вид функции, интервалы изменения аргументов, число интервалов для разбивки сетки по осям
и т.д. При необходимости можно сменить цвета графика, перспективу и способы представления,
нажав на кнопку "Plot options >>".
Чтобы просмотреть график, нажмите кнопку "<< Show". При этом апплет
отобразит панель графика. Нажмите левую клавишу мышки и поверните график в удобную
для Вас позицию. Для возвращения обратно в панель опций дважды щелкните на окне апплета.
Вот как можно задать апплет:
<applet code=funcview.class
width=300
height=300 >
<param name="bgcolor" value="black">
<param name="color" value="yellow">
</applet>
Апплет имеет одну функцию:
String getAppletInfo()
- выдает информацию об апплете.
PS.
- На счет замеченных глюков см. Surface Show. Если глюки заметили ВЫ пишите.
- Допустимые функции и операторы (описание функций по справке Microsoft):
- + - * / ^
- abs(a) Calculates the absolute value of the argument
- sin(a) Calculates the sine of the argument.
- cos(a) the cosine of the argument.
- tan(a) the tangent of the argument.
- exp(a) the value ea, where e is the base of the natural logarithms.
- log(a) the value 1n a, the natural logarithm of a.
- max(a, b) the larger of a and b.
- min(a, b) the smaller of a and b.
- acos(a) the arc cosine of the argument.
- asin(a) the arc sine of the argument.
- atan(a) the arc tangent of the argument.
- atan2(a, b) the theta component of the polar coordinate (r,theta)
that corresponds to the cartesian coordinate (a, b).
- ceil(a) Returns the smallest (closest to negative infinity) double value that is
not less than the argument and is equal to a mathematical integer.
- floor(a) Returns the largest (closest to positive infinity) double value that is
not greater than the argument and is equal to a mathematical integer.
- IEEEremainder(f1, f2) Computes the remainder operation on two arguments as
prescribed by the IEEE 754 standard: the remainder value is mathematically equal
to f1 - f2 times n where n is the mathematical integer closest to the exact mathematical
value of the quotient f1/f2, and if two mathematical integers are equally close to f1/f2 then n is the integer that is even. If the remainder is zero, its sign is the same as the sign of the first argument.
- rint(a) Returns the closest double value to a that is equal to a mathematical integer. If two double values that are mathematical integers are equally close to the value of the argument, the result is the integer value that is even.
- round(a) Calculates the closest long to the argument.
If the argument is negative infinity or any value less than or equal to the value of Long.MIN_VALUE, the result is equal to the value of Long.MIN_VALUE.
If the argument is positive infinity or any value greater than or equal to the value of Long.MAX_VALUE, the result is equal to the value of Long.MAX_VALUE.
- Попробуйте "завернуть" функцию апплета по умолчанию в некоторые функции. Интересные результаты получаются с sin, tan, round, ^2.
Copyright ©
webmaster