Math & ScienceError in Code for Math Expression

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
unknown
Posts: 2
Joined: Thu Mar 14, 2013 10:53 am

Error in Code for Math Expression

Post by unknown »

Hi,

I'm trying to render maths like this.

Code: Select all

$\text{SPRT}{}_{j=1\sim4}=\sum\limits_{s=i}^{k}\ln\left(\frac{\fint_{j}\left(\chi_{s}\right)}{\fint_{0}\left(\chi_{s}\right)}\right)$
I cannot find the error. Compilation problem is:

Code: Select all

! Undefined control sequence.
Any help is appreciated! :?:

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

Error in Code for Math Expression

Post by cgnieder »

Hi unknown,

welcome to the LaTeX community.
unknown wrote:Hi, I'm trying to render maths as

$\text{SPRT}{}_{j=1\sim4}=\sum\limits_{s=i}^{k}\ln\left(\frac{\fint_{j}\left(\chi_{s}\right)}{\fint_{0}\left(\chi_{s}\right)}\right)$

and I cannot find the error. Compilation problem is: ! Undefined control sequence. Please help! :?:
Without a Infominimal working example it is not really possible to tell as we can't know which packages you're using or not. I don't know the control sequence \fint for example... all the other ones are defined if you load amsmath.

Code: Select all

\documentclass{article}
\usepackage{amsmath}
% no idea what \fint should be. I'm defining it to be `f':
\newcommand\fint{f}
\begin{document}


\[
  \text{SPRT}{}_{j=1\sim4}
   =
  \sum\limits_{s=i}^{k}\ln\left(
    \frac
      {\fint_{j}\left(\chi_{s}\right)}
      {\fint_{0}\left(\chi_{s}\right)}
  \right)
\]

\end{document}
Regards
site moderator & package author
unknown
Posts: 2
Joined: Thu Mar 14, 2013 10:53 am

Error in Code for Math Expression

Post by unknown »

Thanks a lot, \fint is the answer. Everything works now. I really do not know where I found that \fint.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Error in Code for Math Expression

Post by localghost »

unknown wrote:[…] I really do not know where I found that \fint.
Perhaps in »The Comprehensive LaTeX Symbol List«.


Best regards and welcome to the board
Thorsten
Post Reply