Thread Closed

Hyperbolic Functions

 
Share Thread Thread Tools
Jan3-05, 06:12 PM   #1
 

Hyperbolic Functions


Hi! How do you write the LaTeX code for the secant, cosecant, and cotangent hyperbolic functions?

I tried using \sech, \csch, and \coth but I am getting an error when I run the latex program. It is giving me a undefiend control sequence message? Is there a package I need to include in my .tex file to have those hyperbolic functions?

Thanks
PhysOrg.com
PhysOrg
mathematics news on PhysOrg.com

>> Mathematicians analyze social divisions using cell phone data
>> Can math models of gaming strategies be used to detect terrorism networks?
>> Mathematician proves there are infinitely many pairs of prime numbers less than 70 million units apart
Jan3-05, 06:24 PM   #2
 
Recognitions:
Homework Helper Homework Help
Science Advisor Science Advisor
just use \text{sech} and so on. you could create your own macro too. these aren't latex commands you see, though the coth one is supposed to be.

rather than search for a package that may have them and probably won't install easily just create the macros in your preamble
Jan3-05, 06:30 PM   #3
 
Quote by matt grime
just use \text{sech} and so on. you could create your own macro too. these aren't latex commands you see, though the coth one is supposed to be.

rather than search for a package that may have them and probably won't install easily just create the macros in your preamble
Thanks. I think I sort of jumped to conclusions with the coth. However, I still get an undefined control sequence error using \text{}. Does it matter it being used within an {eqnarray*} ?
Jan3-05, 07:17 PM   #4
 
Recognitions:
Science Advisor Science Advisor

Hyperbolic Functions


Quote by mathemagician
Hi! How do you write the LaTeX code for the secant, cosecant, and cotangent hyperbolic functions?

I tried using \sech, \csch, and \coth but I am getting an error when I run the latex program. It is giving me a undefiend control sequence message? Is there a package I need to include in my .tex file to have those hyperbolic functions?

Thanks
[itex]\coth x[/itex] works for me... I'm not using \text. Maybe you left no space between coth and the argument...
Jan4-05, 03:15 AM   #5
 
Recognitions:
Homework Helper Homework Help
Science Advisor Science Advisor
as he says, he's got coth to work.

i don't know why it's not working in an eqnarray* (though I wouldn't put the braces there ). Some environments have problems if \ is the first character of an entry in some slot, you could try typing {\text{sech}}
Mar10-10, 04:38 AM   #6
 
The other way around this problem, especially if using the command several times, is to create a new command in the preamble.

\newcommand{\sech}{\mathrm{sech} \,}

And similar for the others. The \mathrm will ensure it's written in normal font and the \, will make sure there is a gap between the function and variable.

Adrian.
Mar10-10, 08:32 PM   #7
 
Recognitions:
Homework Helper Homework Help
Science Advisor Science Advisor
If you're using amsmath, an even better way is to use \DeclareMathOperator.
Thread Closed
Thread Tools


Similar Threads for: Hyperbolic Functions
Thread Forum Replies
Hyperbolic Functions Calculus & Beyond Homework 5
Hyperbolic Functions Calculus & Beyond Homework 3
hyperbolic functions Calculus & Beyond Homework 0
Hyperbolic functions Calculus & Beyond Homework 2
hyperbolic functions Introductory Physics Homework 1