TABULA/samples/angle sine and cosine

From J Wiki
Jump to navigation Jump to search

This is SAMPLE0. To work with this sample, enter $0

angle sine and cosine
┌ ┌ ┌ ┌ {1}         1 rad      angle
│ │ │ └>{2}   57.296°          ={1}
│ │ └>  {3}       57° 17' 44"  ={1}
│ └>  ┌ {4}     0.841 /        sine
└>    ├ {5}     0.540 /        cosine
      └>{6}     1.382 /        sin+cos

Rationale

Line {1} is an angle expressed in radians [rad]. In the SI system, angles (like their sines and cosines) are dimensionless. But TABULA treats [rad] as if it were a new independent SI base unit, not as dimensionless.

The effect of giving an angle its own independent dimension is to make it easy to convert an angle to different angle-formats (e.g. [deg], [dms]) by use of the units dropdown, which would otherwise get cluttered-up with irrelevant units.

Try it out

  1. Select line {1} then enter 4
    Lines {2} and {3} will change to the corresponding angle in degrees, in two different formats.
  2. Zero line {4}
    Lines {1} {2} and {3} will change to show a zero angle, and lines {4} and {5} will change to show the sine and cosine of {1} (viz. 0 and 1 respectively)

Build this t-table

  1. Clear the t-table
  2. Edit the title to read: angle sine and cosine
  3. Make a new line {1}
  4. Change the units of line {1} to [rad]
  5. Edit the name of line {1} to read: angle
  6. Make a new dependent line {2} which always stays equal to {1}
  7. Change the units of line {2} to [°] ([deg])
  8. Make another new dependent line {3} which always stays equal to {1}
  9. Change the units of line {3} to [dms] (degrees - minutes - seconds)
  10. Create the remaining lines as in TABULA/samples/plot_test_using_Function_plotline.