Math & ScienceProblem with command?

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
uhdam
Posts: 1
Joined: Mon May 13, 2013 1:46 am

Problem with command?

Post by uhdam »

I have the problem with below command code.. I want the equation which I have mentioned in the attachment.

Code: Select all

\begin{equation}   
Z =     
\begin{vmatrix}    
X_L - X_C        
\end{vmatrix}
= 70{\Omega}
\end{equation}
So, please give me the exact code in order to get same as the attachement.
Untitled.png
Untitled.png (3.22 KiB) Viewed 2117 times
Last edited by cgnieder on Mon May 13, 2013 11:42 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Problem with command?

Post by cgnieder »

Hi uhdam,

Welcome to the LaTeX community!

I don't think you want a matrix here. I'd do something like this:

Code: Select all

\documentclass{article}
\usepackage{amsmath}
\usepackage{siunitx}

\begin{document}

\begin{equation}
 Z = \lvert X_L - X_C \rvert = \SI{70}{\ohm}
\end{equation}

\end{document}
Regards
site moderator & package author
Post Reply