2017-03-16 01:44:26 +00:00
|
|
|
package com.bytezone.diskbrowser.visicalc;
|
|
|
|
|
2017-03-19 23:21:10 +00:00
|
|
|
public class Atan extends ValueFunction
|
2017-03-16 01:44:26 +00:00
|
|
|
{
|
2017-03-18 08:33:40 +00:00
|
|
|
Atan (Cell cell, String text)
|
2017-03-16 01:44:26 +00:00
|
|
|
{
|
2017-03-18 08:33:40 +00:00
|
|
|
super (cell, text);
|
2017-03-18 09:21:11 +00:00
|
|
|
assert text.startsWith ("@ATAN(") : text;
|
2017-03-16 01:44:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2017-03-20 01:45:14 +00:00
|
|
|
public double calculateValue ()
|
2017-03-16 01:44:26 +00:00
|
|
|
{
|
2017-03-23 13:30:41 +00:00
|
|
|
return Math.atan (source.getDouble ());
|
2017-03-16 01:44:26 +00:00
|
|
|
}
|
|
|
|
}
|