added 2 new features f and phi phase lead
changes made:
fixed the " with ' which is giving some error message in Ejs 4.3.3
re arrange to usual layout and color scheme
made the 2 x1 and x2 points drag-gable to improve usability
made feedback immediate, improve user experience
added frequency = 1/T
added phase lead of x1 to x2 = (xval2-xval)/lambda*2*Math.PI;
added a better code to code for phase lead in multiple of 2*Math.PI thanks to Hwang Fu-Kwun expert advise
http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=2179.0
if (Math.abs(phi%(2*Math.PI)-enterphi%(2*Math.PI)) < 0.1){
phicorrect = " Yes";
phicorrectbackground = java.awt.Color.GREEN;
}
else {
phicorrect = " No";
phicorrectbackground = java.awt.Color.RED;
}
Create a new relation