Skip to content

Not possible to map cube root cbrt( ) #2880

@dvd101x

Description

@dvd101x

On version 11.5.0 while evaluating map([1, 8, 27], cbrt)

yields an error
TypeError: Unexpected type of argument in function cbrt (expected: boolean, actual: Array, index: 1)

On version 10.6.4

cbrt([1, 8, 27]) yields [1, 2, 3] as expected for that version.

but map([1, 8, 27], cbrt) yields the same error TypeError: Unexpected type of argument in function cbrt (expected: boolean, actual: Array, index: 1)

This behavior is unique for cbrt( ) and doesn't happen for other functions that droped element wise matrix support

If we try the square root map([1 ,4, 9], sqrt) it yields [1, 2, 3] as expected

To Reproduce

On version 11.5.0 evaluate map([1, 8, 27], cbrt)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions