Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

This question already has an answer here:

I am studying the phasor method for solving electrical circuits. Have tried using tables and researched a lot on the internet but have not found a simple command to represent the numbers a and b in the diagram below:

enter image description here

Thanks for any help.

share|improve this question

marked as duplicate by Werner, texenthusiast, Mico, Guido, egreg Jul 31 at 6:47

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2  
@Sigur I think this is not a duplicate of the linked question; there, the goal is to effectively calculate the division; here, the OP is interested just in the division-like symbol, but without any calculations. –  Gonzalo Medina Jul 31 at 1:33
    
@GonzaloMedina, I was guided by the title therein How to make the traditional division? –  Sigur Jul 31 at 1:54
1  
@GonzaloMedina Voted to reopen but my Guess: Possible Duplicate of In-line long division symbol (French style) –  texenthusiast Jul 31 at 4:57

2 Answers 2

If it is simply a diagram, you can use a tabular.

\documentclass{article}
\newcommand\Phasor[2]{%
\setlength\tabcolsep{2pt}  %% change 2pt suitably
\begin{tabular}{c|c}
  #1 & #2 \\\cline{2-2}
  \end{tabular}
  }
\begin{document}
  This is \Phasor{a}{b} well a phasor.
\end{document}

enter image description here

Certainly one can use tikz but, for a change, I would not present one. But if you are interested, that is a different case ;)

share|improve this answer
    
It worked perfectly. Thank you very much! –  MathFacts Jul 31 at 0:58

In phasors, the electrical quantities are represented by a magnitude and an angle. The symbol for the angle is not the same as the inline traditional division symbol, but \angle is used in math mode for this.

For example for an R-L circuit with V and I can be expressed as follows:

\documentclass[12pt,a4paper]{article}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\begin{document}
\begin{equation}
\begin{aligned}
V_{sm} &= V_m \angle \phi,\quad  \textup{and}\\
   I_m &= I_m \angle \theta
\end{aligned}
\end{equation}
\end{document}

For more complex formulae one should go with the Steinmetz package as pointed out in the comment of egreg. Here is an example:

\documentclass{article}
\usepackage{steinmetz}
\begin{document}
\begin{itemize}
\item Inductor, $L$: $\mathbf{Z}=j\omega L=\omega L\phase{90^{\circ}}$,
\item Capacitor, $C$: $\displaystyle\mathbf{Z}=\frac{1}{j\omega C}=-j\frac{1}{\omega C}=\frac{1}{\omega C}\phase{-90^{\circ}}$.
\item  $\mathbf{Z}= \phase{\alpha+\beta}$
\end{itemize}
\end{document}

The output is:

enter image description here

share|improve this answer
    
The steinmetz package has been thought for this application. –  egreg Jul 31 at 6:47
    
I have updated my answer accordingly, thanks –  AboAmmar Jul 31 at 15:30

Not the answer you're looking for? Browse other questions tagged or ask your own question.