# No gamma function found in Version 1.0.1 (2018-09-29)

**URL:** <https://discourse.julialang.org/t/no-gamma-function-found-in-version-1-0-1-2018-09-29/16234>\
**Category:** General Usage\
**Created:** [October 12, 2018, 2:19pm UTC](https://discourse.julialang.org/t/no-gamma-function-found-in-version-1-0-1-2018-09-29/16234 "2018-10-12T14:19:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jim\_Baldwin](https://avatars.discourse-cdn.com/v4/letter/j/a8b319/32.png) [@Jim\_Baldwin](https://discourse.julialang.org/u/Jim_Baldwin)\
**Post date:** [October 12, 2018, 2:19pm UTC](https://discourse.julialang.org/t/no-gamma-function-found-in-version-1-0-1-2018-09-29/16234/1 "2018-10-12T14:19:08Z")

</div>

I have just installed Julia Version 1.0.1 (2018-09-29) and the gamma function does not seem to exist. With

```
julia> gamma(6)

```

I get

```
ERROR: UndefVarError: gamma not defined
Stacktrace:
 [1] top-level scope at none:0

```

But factorial(6), log(6), etc. work just fine.

How do I get access to the gamma function? (The documentation states that it is part of base.)

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [October 12, 2018, 2:26pm UTC](https://discourse.julialang.org/t/no-gamma-function-found-in-version-1-0-1-2018-09-29/16234/2 "2018-10-12T14:26:33Z")

</div>

Using 0.7

```julia
julia> gamma(0.5)
ERROR: gamma has been moved to the package SpecialFunctions.jl.
Run `Pkg.add("SpecialFunctions")` to install it, restart Julia,
and then run `using SpecialFunctions` to load it.

```

> [@Jim\_Baldwin](#):
>
> (The documentation states that it is part of base.)

That should be fixed, could you show where?

---

<div class="post-metadata">

**Author:** ![Jim\_Baldwin](https://avatars.discourse-cdn.com/v4/letter/j/a8b319/32.png) [@Jim\_Baldwin](https://discourse.julialang.org/u/Jim_Baldwin)\
**Post date:** [October 12, 2018, 3:45pm UTC](https://discourse.julialang.org/t/no-gamma-function-found-in-version-1-0-1-2018-09-29/16234/3 "2018-10-12T15:45:48Z")

</div>

Obviously I’m new to Julia. And I certainly misread the documentation as I cannot find where the documentation states that gamma is part of base.

And maybe my problems are deeper than even that. When I type in

```
julia> Pkg.add("SpecialFunctions")

```

on version 1.0.1.1 I get

```
ERROR: UndefvarError: Pkg not defined

```

---

<div class="post-metadata">

**Author:** ![Jim\_Baldwin](https://avatars.discourse-cdn.com/v4/letter/j/a8b319/32.png) [@Jim\_Baldwin](https://discourse.julialang.org/u/Jim_Baldwin)\
**Post date:** [October 12, 2018, 3:48pm UTC](https://discourse.julialang.org/t/no-gamma-function-found-in-version-1-0-1-2018-09-29/16234/4 "2018-10-12T15:48:34Z")

</div>

From one of your other answers I see how to fix things.

I need to use

```
using Pkg

```

first. Then the Pkg.add commend.

Thanks!

---

<div class="post-metadata">

**Author:** ![ExpandingMan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/expandingman/32/866_2.png) [@ExpandingMan](https://discourse.julialang.org/u/ExpandingMan)\
**Post date:** [October 12, 2018, 3:49pm UTC](https://discourse.julialang.org/t/no-gamma-function-found-in-version-1-0-1-2018-09-29/16234/5 "2018-10-12T15:49:13Z")

</div>

In 1.0, in the REPL type

```julia
]add SpecialFunctions

```

The character `]` brings you into the package manager (`Pkg`) REPL mode.

---

<div class="post-metadata">

**Author:** ![Jim\_Baldwin](https://avatars.discourse-cdn.com/v4/letter/j/a8b319/32.png) [@Jim\_Baldwin](https://discourse.julialang.org/u/Jim_Baldwin)\
**Post date:** [October 12, 2018, 3:55pm UTC](https://discourse.julialang.org/t/no-gamma-function-found-in-version-1-0-1-2018-09-29/16234/6 "2018-10-12T15:55:31Z")

</div>

Thanks but my other issue that I posted earlier is that Julia won’t start in REPL mode and only in Legacy mode when using Atom. However, once I get that issue fixed I’ll certainly use what you listed. Thanks!
