# How to work with intervals values in julia

**URL:** <https://discourse.julialang.org/t/how-to-work-with-intervals-values-in-julia/6433>\
**Category:** General Usage\
**Created:** [October 14, 2017, 1:48am UTC](https://discourse.julialang.org/t/how-to-work-with-intervals-values-in-julia/6433 "2017-10-14T01:48:01Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![yuyichao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yuyichao/32/20_2.png) [@yuyichao](https://discourse.julialang.org/u/yuyichao)\
**Post date:** [October 14, 2017, 4:15pm UTC](https://discourse.julialang.org/t/how-to-work-with-intervals-values-in-julia/6433/10 "2017-10-14T16:15:25Z")

</div>

A few issues I can see,

1. You are not actually using sigma in your function at all and is  
rather using it as a global variable so changing what you pass to the  
rc0bc0gc0 function won’t make any difference.

2. You are using sigma (as well as other values) as scalar. As I’ve  
already said, you should figure out if you want to keep it that way  
(and apply rc0bc0gc0 on each of the scalar values individually) or if  
you want to “vectorize” rc0bc0gc0.

---

_[View the full topic](https://discourse.julialang.org/t/how-to-work-with-intervals-values-in-julia/6433)._
