Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vector norm #26

Closed
drlippman opened this issue Sep 25, 2014 · 4 comments

Comments

Projects
None yet
2 participants
@drlippman
Copy link
Contributor

commented Sep 25, 2014

I am teaching linear algebra this term, and just realized there isn't a symbol for vector norm in asciimath. I'm happy to add it to the code, but need some input:

  1. What should the asciimath symbol be? While ||x|| would be intuitive, I think it would be difficult to implement. I'm tempted to use a unary like norm(x) instead.

  2. What is the proper MathML and TeX to render the vector norm?

@pkra

This comment has been minimized.

Copy link
Member

commented Sep 25, 2014

I think \left\lVert x \right\rVert and

    <math xmlns="http://www.w3.org/1998/Math/MathML">
    <mrow>
      <mo>&#x2225;</mo>
      <mi>x</mi>
      <mo>&#x2225;</mo>
    </mrow>
    </math>

are pretty standard.

@drlippman

This comment has been minimized.

Copy link
Contributor Author

commented Sep 25, 2014

Hmm. Wikipedia suggests that U+2016 is a more correct unicode symbol for the vector norm. But looking at both, the U+2225 symbol seems to display a bit better. And since MathJax uses U+2225 for $| x|$, I guess AsciiMath should too for consistency.

@drlippman

This comment has been minimized.

Copy link
Contributor Author

commented Sep 25, 2014

Implemented in 4b6fa3b

@drlippman drlippman closed this Sep 25, 2014

@pkra

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.