# Error: function undefined

**URL:** https://discourse.julialang.org/t/error-function-undefined/23717
**Category:** New to Julia
**Tags:** question
**Created:** [April 30, 2019, 9:57pm UTC](https://discourse.julialang.org/t/error-function-undefined/23717 "2019-04-30T21:57:05Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)
#### Post date: [May 1, 2019, 12:35pm UTC](https://discourse.julialang.org/t/error-function-undefined/23717/7 "2019-05-01T12:35:03Z")

</div>

Please make sure to reduce your code to a minimum working example (MWE) that reproduces the error that you’re seeing and that others can run, have a look at: [Please read: make it easier to help you](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757)

If I copy the code in your post above, I get the error `newPoints not defined`, which occurs on the very first line of your `deCasteljauPoints` function (where you do `append!(points, newPoints)`, without defining `newPoints` first)

---

_[View the full topic](https://discourse.julialang.org/t/error-function-undefined/23717)._
