What is the correct type for sign(x)(signum function)? I'm using:
\documentclass[journal,transmag]{IEEEtran}
\usepackage{amsmath}
\usepackage{amssymb}
\newcommand{\sign}{\text{sign}}
Is that correct or should I be using "sgn" instead?
What is the correct type for sign(x)(signum function)? I'm using:
\documentclass[journal,transmag]{IEEEtran}
\usepackage{amsmath}
\usepackage{amssymb}
\newcommand{\sign}{\text{sign}}
Is that correct or should I be using "sgn" instead?
Whether you use “sign” or “sgn” is a style issue which your intended publisher can answer, not us. That said, you probably want to use AMSMath’s \DeclareMathOperator not \newcommand; see newcommand vs. DeclareMathOperator:
…
\usepackage{amsmath}
\DeclareMathOperator{\sign}{sign}
…
Depending on the value of $\sign x$, $y$ will take the following values:
…
(On the other hand, see \DeclareMathOperator won't take arguments for times to use \newcommand, and how best to do so. As noted there, if you do define your own commands, use \operatorname not \text to format the name.)
The question of whether to use "sgn" or "sign" is not entirely subjective: the ISO 80000-2 standard says it should be "sgn".
\DeclareMathOperator, but I'm sure that it would be a duplicate). Second, ISO is plain wrong stupid idea of engineers who think that they are the gods on the earth. Third, it does not mention at all what LaTeX has to say.
– yo'
Oct 02 '15 at 16:37
tan or tg), arcus sine (choose arc\,sin, arcsin or sin^{-1}), etc. :-)
– yo'
Oct 02 '15 at 16:59
sgn function. But even more sad it is that no package has such a function yet (the people of amsmath could add it!). So I think the question is pertinent and 9 more people think the same. :)
– loved.by.Jesus
Feb 19 '16 at 16:52
\DeclareMathOperator{\sgn}{sgn}after you've loadedamsmath. – Bernard Dec 02 '14 at 00:26\newcommand{\sign}{\text{sgn}}? If so, I think your question is off-topic for this site as it is about notation rather than how to produce it. – cfr Dec 02 '14 at 00:26\DeclareMathOperator\sign{sign}. And, as an extra, that lets you change the name; if you prefer to usesgnyou just change the definition to\DeclareMathOperator\sign{sgn}. – Manuel Dec 02 '14 at 00:26\text{...}! Use\DeclareMathOperator{\sgn}{sgn}instead. Edit: too slow... – JBantje Dec 02 '14 at 00:29