# Broadcasting log, ouch!

**URL:** https://discourse.julialang.org/t/broadcasting-log-ouch/126798
**Category:** New to Julia
**Created:** [March 11, 2025, 1:14am UTC](https://discourse.julialang.org/t/broadcasting-log-ouch/126798 "2025-03-11T01:14:12Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![rmfritz](https://avatars.discourse-cdn.com/v4/letter/r/b487fb/32.png) [@rmfritz](https://discourse.julialang.org/u/rmfritz)
#### Post date: [March 11, 2025, 1:14am UTC](https://discourse.julialang.org/t/broadcasting-log-ouch/126798/1 "2025-03-11T01:14:12Z")

</div>

Beware, beware.

```julia
julia> Ldmax = 1; Lddyn = 500; Ldmin = Ldmax/Lddyn;
julia> log.(Ldmin, Ldmax)
-0.0
julia> log.((Ldmin, Ldmax))
(-6.214608098422191, 0.0)

```

---

<div class="post-metadata">

### Author: ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)
#### Post date: [March 11, 2025, 1:53am UTC](https://discourse.julialang.org/t/broadcasting-log-ouch/126798/2 "2025-03-11T01:53:50Z")

</div>

`log.(Ldmin, Ldmax)` is calling a two-argument method with two scalars. `log.((Ldmin, Ldmax))` is calling (broadcasting) the one-argument method on a tuple, not much different from `log.([Ldmin, Ldmax])`.
