Functions
Falco Script Processor supports mathematical functions. Here is the list:
AddFunc('LogBase10',LogBase10) |
AddFunc('LogBase2',LogBase2) |
AddFunc('LogBaseN',LogBaseN) |
AddFunc('ArcCos',ArcCos) |
AddFunc('ArcCot',ArcCot) |
AddFunc('ArcCsc',ArcCsc) |
AddFunc('ArcSec',ArcSec) |
AddFunc('ArcSin',ArcSin) |
AddFunc('ArcTan',ArcTan) |
AddFunc('ArcTan2',ArcTan2) |
AddFunc('Cos',Cos) |
AddFunc('Cot',Cot) |
AddFunc('Coversine',Coversine) |
AddFunc('Csc',Csc) |
AddFunc('Exsecans',Exsecans) |
AddFunc('Haversine',Haversine) |
AddFunc('Sec',Sec) |
AddFunc('Sin',Sin) |
AddFunc('Tan',Tan) |
AddFunc('Versine',Versine) |
AddFunc('ArcCosH',ArcCosH) |
AddFunc('ArcCotH',ArcCotH) |
AddFunc('ArcCscH',ArcCscH) |
AddFunc('ArcSecH',ArcSecH) |
AddFunc('ArcSinH',ArcSinH) |
AddFunc('ArcTanH',ArcTanH) |
AddFunc('CosH',CosH) |
AddFunc('CotH',CotH) |
AddFunc('CscH',CscH) |
AddFunc('SecH',SecH) |
AddFunc('SinH',SinH) |
AddFunc('TanH',TanH) |
AddFunc('Sqrt',Sqrt) |
AddFunc('Exp',Exp) |
AddFunc('Ln',Ln) |
AddFunc('Power',Power) |
AddFunc('Abs',Abs) |
Rand() |
Rand() - Randomize function and
V.2.1: Added Rand() - Randomize function and
x = 0.7;
if(x < 0.6){
y = Rand();
}else if(x > 0.5){
y = 1;
}else{
y = 2;
}
Res = y;
V.2.2:
Multiple operators can be on one line like:
x = 0.7; y = 10; if(x < 10){ Res = Rand(); }else if(x > 10){ Res = 10; }else{ Res = 30; }