mirror of
https://github.com/dmolony/DiskBrowser.git
synced 2024-06-20 05:29:35 +00:00
16 lines
291 B
Java
16 lines
291 B
Java
package com.bytezone.diskbrowser.visicalc;
|
|
|
|
public class Sin extends ValueFunction
|
|
{
|
|
Sin (Cell cell, String text)
|
|
{
|
|
super (cell, text);
|
|
assert text.startsWith ("@SIN(") : text;
|
|
}
|
|
|
|
@Override
|
|
public double calculateValue ()
|
|
{
|
|
return Math.sin (source.getValue ());
|
|
}
|
|
} |