Skip to content

Unknown special function name "tanTimes100" for unit "[p'diop]" #384

Open

Description

@fhnaumann

In the documentation only 100tan is defined/explained.

The function pair denoted “100tan(1 rad)” is defined as fPD(α) = tan(α) × 100 to convert from a plane angle α to a prism diopter value (or a slope percent value) and fPD-1(x) = arctan(x / 100) to convert from prism diopter (or slope percent) value x back to a plane angle.

This matches the %[slope] unit in the ucum-essence.xml:

<unit Code="%[slope]" CODE="%[SLOPE]" isMetric="no" isSpecial="yes" class="clinical">
  <name>percent of slope</name>
  <printSymbol>%</printSymbol>
  <property>slope</property>
  <value Unit="100tan(1 rad)" UNIT="100TAN(1 RAD)">
     <function name="100tan" value="1" Unit="deg"/>
  </value>
</unit>

But the unit [p'diop] has a different function name:

<unit Code="[p'diop]" CODE="[P'DIOP]" isMetric="no" isSpecial="yes" class="clinical">
   <name>prism diopter</name>
   <printSymbol>PD</printSymbol>
   <property>refraction of a prism</property>
   <value Unit="100tan(1 rad)" UNIT="100TAN(1 RAD)">
      <function name="tanTimes100" value="1" Unit="rad"/>
   </value>
</unit>

The documentation never mentions the name tanTimes100, but this is probably just a typo and should be 100tan instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions