Skip to content

Incorrect behavior of commands: CstName & CstValue #1574

@Wiljea

Description

@Wiljea

In the second menu of "PART" (reached on the keyboard with 🟦E ►), the commands "StdUnc" (🟨F3) & "RelUnc" (🟨F4) give respectively the correct (sometimes) standard & relative uncertainties of a constant given on the stack, but the commands "CstName" (🟨F1) & "CstValue" (🟨F2) seems to behave incorrectly or lead to error message:

'Ⓒre' →Num @Expecting  2.81794 03204 6 fm  
'Ⓒre' StdUnc @Failing 0.00000 00013 fm => 'StdUnc' not recognized
    @typing: 'Ⓒre' 🟦E ► 🟨F3 => 'Round(Round(3.42⁳⁻¹²÷α;-2)·2.81794 03204 6 fm;-2)'
            can't be computed because 'α' should be a constant 'Ⓒα'
'Ⓒre' CstName @Failing 'Classical electron radius' => 'CstName' not recognized 
    @typing: 'Ⓒre' 🟦E ► 🟨F1 => re →Num => 2.81794 03204 6 fm not the name
'Ⓒre' CstValue @Failing 2.81794 03204 6 fm => 'CstValue' not recognized
    @typing: 'Ⓒre' 🟦E ► 🟨F2 => "Drop error: Invalid or unknown constant" &
    "ConstantValue error: Invalid or unknown constant"

The same can be observed for the Rydberg constant except that in this case 'ⒸR∞' is interpreted as 'Ⓒre' which is not the same constant! But in this case 'ⒸR∞' 🟦E ► 🟨F3 => 0.00001 2 m⁻¹, we obtain the expected value.

I understand that this comes from the fact that in v0.9.14 these command are not or only partly implemented but I think that they should be equivalent to (or interpreted as):

  1. for 'StdUnc' <=> append 'Ⓢ' before the constant and then execute →Num,
  2. for 'RelUnc' <=> append 'Ⓡ' before the constant and then execute →Num.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions