Author: Wayne Rasband (wsr at nih.gov) History: 2006/07/14: First version
Bugs: ImageJ 1.38g fixes a bug that caused values written by this plugin to be deleted without warning if the "Results" window was closed or if the Measure command was used. It also fixes a bug that caused the ResultsTable to not be updated when rows were deleted from the window used to display it if the window was not named "Results". Source: Sine_Cosine_Table.java Installation: Download Sine_Cosine_Table.java to the plugins folder, or subfolder, then compile and run it using Plugins/Compile and Run. Description: This plugin adds a sine/cosine table to the ImageJ Results Table and displays it in the Results window. It is equivalent to the macro: run("Clear Results"); row = 0; for (n=0; <=2*PI; n += 0.1) { setResult("n", row, n); setResult("Sine(n)", row, sin(n)); setResult("Cos(n)", row, cos(n)); row++; } updateResults()Macros can retrieve values from the Results Table using the getResult macro function:for (i=0; i<nResults; i++) print(getResult("n",i), getResult("Sine(n)",i));