GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — No links to "construction" doc pages · Issue #3368 · josdejong/mathjs

No links to "construction" doc pages #3368

New issue
Copy link
New issue
Copy link
Closed
#3375
Closed
No links to "construction" doc pages#3368
#3375
Copy link
Labels
bugdocumentationConcerns about or enhancements to the mathjs documentation

Description

@gwhitney
gwhitney
opened on Jan 27, 2025
Issue body actions

Describe the bug
There are doc pages for construction functions such as bignumber but no links to such functions from the function reference page. Further, the new construction function bigint has no page.

To Reproduce
n/a

Discussion
I plan to address this in the PR for #3366 which will also update the bigint function.

Reacted by Jos de Jong

Activity

  1. gwhitney
    added
    bug
    documentationConcerns about or enhancements to the mathjs documentation
    on Jan 27, 2025
  2. gwhitney
    added a commit that references this issue on Jan 31, 2025

    fix: Uniformize bigint construction

    This issue will close once commit 37c550d is merged into the 'develop' branch.
    37c550d
  3. josdejong commented on Feb 20, 2025

    @josdejong
    josdejong
    on Feb 20, 2025
    Owner
    More actions

    Thanks, good idea to create a page for bigint like there is for the other data types.

  4. gwhitney commented on Feb 20, 2025

    @gwhitney
    gwhitney
    on Feb 20, 2025
    CollaboratorAuthor
    More actions

    Yes but also the constructor pages are currently "lost" -- not linked to from the function reference page on mathjs.org. that also needs fixing, and I think #3375 does so.

  5. josdejong commented on Mar 19, 2025

    @josdejong
    josdejong
    on Mar 19, 2025
    Owner
    More actions

    The class desciptions can be found via Docs > Reference > Classes, is that what you mean?

  6. gwhitney commented on Mar 19, 2025

    @gwhitney
    gwhitney
    on Mar 19, 2025
    CollaboratorAuthor
    More actions

    No. I mean the doc pages for the functions fraction or complex or even number have been lost from the mathjs.org site. They are simply not linked on the function reference page-- the whole "construction" section has gone missing. It is restored in PR #3375.

  7. josdejong commented on Mar 19, 2025

    @josdejong
    josdejong
    on Mar 19, 2025
    Owner
    More actions

    Ah, I now I understand what you mean, you're right.

    What do you think is best, address this in #3375 or put together a small PR that fixes just this issue only?

  8. gwhitney commented on Mar 19, 2025

    @gwhitney
    gwhitney
    on Mar 19, 2025
    CollaboratorAuthor
    More actions

    Ah, I now I understand what you mean, you're right.

    What do you think is best, address this in #3375 or put together a small PR that fixes just this issue only?

    Well, #3375 is currently hung up on a design question: how to support a client wanting to convert a JavaScript number to a bigint, but only when the number is a "safe" integer? Note there is currently no implicit conversion number => bigint in mathjs, and it would probably be problematic to add one, as there is an implicit conversion bigint => number (that does check for "safety") and we have generally run into troubles with bidirectional implicit conversions. Also, implicit conversions don't help with a user-supplied mathjs expression language formula that happens to return number but the code using it wants a bigint -- it has to wrap the formula in something to make the conversion happen.

    So the conversion must be requested explicitly, and I think there is a strong use case for a "safe" conversion option. In our case, we are doing number theory calculations, including modular arithmetic that gets thrown off badly when a JavaScript number exceeds the "safe" range, and so we need protection from that happening.

    The other debate in #3375 is the per-function 'History' section: you're worried that convention would be hard to maintain, whereas I feel it is much easier to maintain than the existing central 'History', since a function's History only needs an update when you touch its source file, and if you are editing the code, it's easy to just add a line to the History right there, and it's easy in review to check that any function source file that was modified as to behavior had a History line added.

    So if you see those as being resolvable fairly soon/fairly easily (if you provide direction/decisions on them, e.g, you want a CI workflow addition that checks for new History lines in edited function files, I am happy to update #3375 right away, since it is blocking our adoption of mathjs v14+), then it seems easiest to just go with #3375. If you see them as more protracted, then just let me know and I will extract the portion of it that restores these doc pages as a standalone PR and rebase #3375 once that's merged.

    My apologies for folding three things into #3375 (bigint conversion, per-function History, and reviving "construction" doc pages). I recognize that's not typically development "best practice" but given how many outstanding items there are on the mathjs list it can be the most efficient time-wise, when it goes smoothly. So I succumbed to the temptation to do a few things "while I was there" because of my feeling of the pressure of a very long list of mathjs needs (e.g. 100+ open issues and many PRs hanging around and a lot of Discussions with really good ideas besides).

  9. josdejong commented on Mar 20, 2025

    @josdejong
    josdejong
    on Mar 20, 2025
    Owner
    More actions

    👍 I've repied in #3375 (comment)

  10. josdejong commented on Mar 20, 2025

    @josdejong
    josdejong
    on Mar 20, 2025
    Owner
    More actions

    My apologies for folding three things into #3375 (bigint conversion, per-function History, and reviving "construction" doc pages).

    Yeah it's not ideal. Making a PR addressing multiple things in one go is easier for the one creating the PR, but harder for the one that has to review the PR 😅.

  11. gwhitney
    added a commit that references this issue on Apr 17, 2025

    fix: Uniformize bigint construction

    This issue will close once commit c87c980 is merged into the 'develop' branch.
    c87c980
  12. josdejong
    added a commit that references this issue on Aug 28, 2025

    fix: #3519, #3368 categories "Core functions" and "Construction funct…

    b3e67e5
  13. josdejong commented on Aug 28, 2025

    @josdejong
    josdejong
    on Aug 28, 2025
    Owner
    More actions

    Addressed in a simple way via b3e67e5

  14. josdejong
    closed this as completedon Aug 28, 2025
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

    bugdocumentationConcerns about or enhancements to the mathjs documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402792 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.