# LegendreBasis from DiffEqFlux is not present in current version?

**URL:** <https://discourse.julialang.org/t/legendrebasis-from-diffeqflux-is-not-present-in-current-version/123568>\
**Category:** New to Julia\
**Tags:** ode, diffeqflux\
**Created:** [December 7, 2024, 1:53pm UTC](https://discourse.julialang.org/t/legendrebasis-from-diffeqflux-is-not-present-in-current-version/123568 "2024-12-07T13:53:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luis\_Reig\_Quilis](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/luis_reig_quilis/32/212700_2.png) [@Luis\_Reig\_Quilis](https://discourse.julialang.org/u/Luis_Reig_Quilis)\
**Post date:** [December 7, 2024, 1:53pm UTC](https://discourse.julialang.org/t/legendrebasis-from-diffeqflux-is-not-present-in-current-version/123568/1 "2024-12-07T13:53:37Z")

</div>

Good day, everyone. I am trying to follow this tutorial from DiffEqFlux.

> **[Physics-Informed Machine Learning (PIML) with TensorLayer · DiffEqFlux.jl](https://docs.sciml.ai/DiffEqFlux/stable/examples/tensor_layer/#Physics-Informed-Machine-Learning-(PIML)-with-TensorLayer)**
>
> Documentation for DiffEqFlux.jl.

During the second step of the tutorial, we have to create a TensorLayer to perform 10th order expansions in a Legendre Basis using the following code:

```julia
A = [LegendreBasis(10), LegendreBasis(10)]

```

which results in

 ![image](https://global.discourse-cdn.com/julialang/original/3X/0/b/0b39ed6b019a3e7f2de4877bf64ace46571f88b6.png)

I imagined that I forgot to install a dependency from DiffEqFlux.jl so I reinstalled and loaded the library just to be sure, but to no avail. Is this a deprecated function in the current version and the tutorial is outdated?

Thank you and regards.

---

<div class="post-metadata">

**Author:** ![nsajko](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nsajko/32/221187_2.png) [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Post date:** [December 7, 2024, 2:20pm UTC](https://discourse.julialang.org/t/legendrebasis-from-diffeqflux-is-not-present-in-current-version/123568/2 "2024-12-07T14:20:54Z")

</div>

A JuliaHub symbol search shows a `LegendreBasis` being defined in four packages: [JuliaHub](https://juliahub.com/ui/Search?type=symbols&q=LegendreBasis). Maybe try importing it from one of these?

---

<div class="post-metadata">

**Author:** ![Luis\_Reig\_Quilis](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/luis_reig_quilis/32/212700_2.png) [@Luis\_Reig\_Quilis](https://discourse.julialang.org/u/Luis_Reig_Quilis)\
**Post date:** [December 7, 2024, 4:07pm UTC](https://discourse.julialang.org/t/legendrebasis-from-diffeqflux-is-not-present-in-current-version/123568/3 "2024-12-07T16:07:36Z")

</div>

I could not make it work with any of them, unfortunately, but thanks for the tip.

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [December 7, 2024, 5:51pm UTC](https://discourse.julialang.org/t/legendrebasis-from-diffeqflux-is-not-present-in-current-version/123568/4 "2024-12-07T17:51:41Z")

</div>

Show `]st`. What version do you have?
