# \#zeros

**URL:** https://discourse.julialang.org/tag/zeros/1022.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Why are the entries identical in \`zeros(JuMP.AffExpr, N)\`](https://discourse.julialang.org/t/why-are-the-entries-identical-in-zeros-jump-affexpr-n/130860)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 9\
**Last updated:** [July 19, 2025, 8:04am UTC](https://discourse.julialang.org/t/why-are-the-entries-identical-in-zeros-jump-affexpr-n/130860 "2025-07-19T08:04:07Z")

</div>

My understanding about the zeros function in julia is that it has independent entries. But today I find a weird behavior which I cannot explain why. Compare the following unexpected outcome 🔴 and the expected outcome ✅ …

---

## [How to check reliably whether a function has a zero on an interval '\[0,a)'](https://discourse.julialang.org/t/how-to-check-reliably-whether-a-function-has-a-zero-on-an-interval-0-a/114560)

<div class="topic-metadata">

**Author:** [@paul188](https://discourse.julialang.org/u/paul188)\
**Replies:** 5\
**Last updated:** [May 22, 2024, 5:23pm UTC](https://discourse.julialang.org/t/how-to-check-reliably-whether-a-function-has-a-zero-on-an-interval-0-a/114560 "2024-05-22T17:23:52Z")

</div>

Let’s say I have a continuous (even smooth) function f(x) which is defined on the whole real line. Now, I want to know whether f(x) has a zero in \[0, ∞). I can say for sure that if it has a zero on this ray, this zero m…

---

## [zero(a::Real)?](https://discourse.julialang.org/t/zero-a-real/107175)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 24\
**Last updated:** [December 6, 2023, 12:29pm UTC](https://discourse.julialang.org/t/zero-a-real/107175 "2023-12-06T12:29:20Z")

</div>

Why is zero() of a Real an Int(0) ? The example below looks weird, because it’s as if zero(0.3333333333) == 0::Int. It took me some time to locate the cause of my bug. The bug was that I was getting Vector{Int64} from…

---

## [\[ANN\] ArrayAllocators.jl: Integrating calloc and aligned memory into Array construction](https://discourse.julialang.org/t/ann-arrayallocators-jl-integrating-calloc-and-aligned-memory-into-array-construction/80356)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 14\
**Last updated:** [May 5, 2022, 7:48pm UTC](https://discourse.julialang.org/t/ann-arrayallocators-jl-integrating-calloc-and-aligned-memory-into-array-construction/80356 "2022-05-05T19:48:04Z")

</div>

ArrayAllocators.jl I am happy to announce ArrayAllocators.jl, a registered package that provides new mechanisms of array allocation. ArrayAllocators.jl provides new values that can take the place of undef when constructi…
