elementary / elementary/calculator

Error computing expressions with logarithms entered with button without brackets

Open
#290 3 comments 0 reactions 0 assignees View on GitHub
Status: Confirmed
Dominant language
Vala
Stars
83
Forks
32
Avg merge
2d 3h
Merged PRs (30d)
3

Description

### What Happened?

Computing `ln(5) / ln(2)` returns an incorrect result.

The same happens for `log(5)/log(2)` although `log(5)` and `log(2)` are correct in isolation.

Image

### Steps to Reproduce

1. Open Calculator
2. Compute `ln(5)/ln(2)`
3. You will get `1.975950833` as a result, this is wrong as the correct result is `2.321928094`.

### Expected Behavior

The expression `ln(5)/ln(2)` should return the correct result.

### OS Version

8.x (Circe)

### OS Architecture

amd64 (on most hardwares)

### Session Type

Secure Session (Wayland)

### Software Version

Latest release (I have run all updates)

### Log Output

```shell

```

### Hardware Info

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.