# Fix f64 variants of math.cosh and math.sinh to accept negative inputs\. \(\#5172\) · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/28c31a8429f513f2d0e04ff5193faa8147721b19)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 28c31a8429f513f2d0e04ff5193faa8147721b19

Requested commit: 28c31a8429f513f2d0e04ff5193faa8147721b19

Commit: 28c31a8429f513f2d0e04ff5193faa8147721b19

Tree: 597aadd1c16e028dcbfb7e95efae3ce9227248db

Author: Nick Appleton

Committer: GitHub

## Message

```
Fix f64 variants of math.cosh and math.sinh to accept negative inputs. (#5172)

* add tests for negative inputs to cosh32 and cosh64. fix bug in cosh64 for negative inputs.

* fix problem with negative input with f64 sinh and add tests
```

## Parents

- [d44c9bdbd9c6add603997a834506ddd165a70cd4](https://git.cafe/gitcafe/zig/commit/d44c9bdbd9c6add603997a834506ddd165a70cd4?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/28c31a8429f513f2d0e04ff5193faa8147721b19?format=markdown)
