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 2144 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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
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