bugl
bugl
HomeLearnPatternsPathsSearch
HomeLearnPatternsPathsSearch

Loading lesson path

Learn/Java/Java Reference
Java•Java Reference

Java Math cosh() Method

Flash cards

Review the key moves

1/4
Core idea

What is the main idea behind Java Math cosh() Method?

Lesson checks

Practice each idea before moving on

Short Mimo-style checks built from this lesson's code, terms, and sequence.

1Quick choice

Which statement best captures the main point of this lesson?

2Fill blank

Complete the missing token from the example code.

___.out.println(Math.cosh(3));
3Order

Put the learning moves in the order that makes the concept easiest to apply.

The cosh() method returns the hyperbolic cosine of a number.
Definition and Usage
Java Math cosh() Method

❮ Math Methods

Example

System.out.println(Math.cosh(3));
System.out.println(Math.cosh(-3));
System.out.println(Math.cosh(0));
System.out.println(Math.cosh(1));

Definition and Usage

The cosh() method returns the hyperbolic cosine of a number.

The hyperbolic cosine is equivalent to (Math.exp(number) + Math.exp(-number)) / 2 .

Syntax

public static double cosh(double
number )

Parameter Values

ParameterDescription
numberRequired. A number to find the hyperbolic cosine of.

Technical Details

Returns:A double value representing the hyperbolic cosine of a number.
Java version:1.5+

Previous

Java Math cos() Method

Next

Java Math decrementExact() Method