Skip to content

(±1)^(±Inf) #7233

@gusl

Description

@gusl
julia> 1^Inf
1.0
julia> 1^(-Inf)
1.0
julia> (-1)^Inf
1.0
julia> (-1)^(-Inf)
1.0

Here's what R does:

> 1^Inf
> [1] 1
> 1^(-Inf)
> [1] 1
> (-1)^Inf
> [1] NaN
> (-1)^(-Inf)
> [1] NaN

Matlab returns NaN for all 4 possibilities.

Is there a standard that we're trying to follow?

Metadata

Metadata

Assignees

Labels

help wantedIndicates that a maintainer wants help on an issue or pull requestmathsMathematical functionsneeds decisionA decision on this change is needed

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions