|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectfi.jyu.mit.graphics.CosFun
public class CosFun
Luokka cos-funktion käsittelemiseksi. a*cos(b*x) oletuksen cos(x)
| Field Summary | |
|---|---|
static FunctionRR |
cos
Luodaan stattinen cosini-funktio kaikkien käyttöön. |
| Constructor Summary | |
|---|---|
CosFun()
Alustetaan oletuksilla |
|
CosFun(double a,
double b)
Asettaa funktion a*cos(b*x) parametrit a ja b |
|
| Method Summary | |
|---|---|
double |
f(double x)
Cosinifunktion arvo pisteessä x |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final FunctionRR cos
| Constructor Detail |
|---|
public CosFun()
public CosFun(double a,
double b)
a - funktion a-parametrib - funktion b-parametri| Method Detail |
|---|
public double f(double x)
f in interface FunctionRRx - mistä cos lasketaan
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||