Skip to content

Core concepts: re-organize trig/log functions? #526

@NSoiffer

Description

@NSoiffer

Summary

We currently have a list of operators listed at the top of the core concept page. I believe that a similar list for common mis that are used for function/concept names should be given. That list would include all of the trig/log functions. It would shrink the size of list by at least two screens.

Proposal

We have previously agreed that it is best if intent is used as low as possible in tree. So

<mrow> <mi>x</mi> <mo intent='plus'>+</mo> <mi>y</mi> </mrow>

is preferable to

<mrow intent='plus:infix($x, $y)'> <mi arg='x'>x</mi> <mo>+</mo> <mi arg='y'>y</mi> </mrow>

Note that ":infix" isn't needed because core says it defaults to ":infix". Also note that in the first case, the intent is not needed on + because there is a unique intent associated with that character.

In a similar vein, it is best to push the intent for functions as low as possible in the tree. So

<mrow> <mi intent="sine">sin</mi> <mo>&#2061</mo> <mi>x</mi> </mrow>

is preferable to

<mrow intent='sine:function($x)'> <mi>sin</mi> <mo>&2061;</mo> <mi arg='x'>x</mi> </mrow>

Consistent with the preference to use the lowest usage, we have a list of operators at the start of core with the intent name along with operators they are associated with. I believe the same should be done for function names. This would result in a list with entries such as

sine(sin, sen), cosine(cos), tangent(tan, tg), ..., hyperbolic-sine(sinh), ...

Doing this would shrink the core concept page by at least two screens. We may want to extend this to many other concept names such as "gcd" making shrinkage even greater. There is a potential problem with "gcd" because it has multiple arguments and the ordering needs to be specified somehow. Perhaps they are only included in the list when the order matches the rendering order (which is the default interpretation). When pushed down to the leaf level, there is no problem.

As with operators, for the first case, one doesn't need to add the intent to sin because sin would have a unique mapping to "sine". Currently, the core concept list does not make this clear or even that it should happen. Of course, just as with +, if someone wanted different speech, they can add intent on the mi.

The current nofix entries would also be in this list -- the nofix entries are not operators -- they should be mis and so are currently wrong.

Other than (maybe) the new default association of the display name ("sin") with the concept ("sine"), this proposal does not change how the concepts for the trig functions (etc) are used. It does however make it clearer that intents for function names are similar to intents for operators in that both can (should) be used on the leaf elements when possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions