Skip to content

Unexpected result with Vector4.Exp #118841

@kristiker

Description

@kristiker

Does anyone know why vector exponential

Vector4.Exp(Vector4.Zero);

gives <1.0000001, 1.0000001, 1.0000001, 1.0000001>

while

MathF.Exp(0);

gives 1.0f

Where is the error coming from?

Check the results for youself here:
https://sharplab.io/#v2:C4LgTgrgdgNAJiA1AHwAICYCMBYAUKgBgAJVMA6AOQgFsBTMASwGMBnAbj0JPICVpgGdMgEkowRlBbN2eTpgCcACgCyAQ2AALAGJkAogA8ADooIBKUx3wKV6jXqMnzluUoBqtJsAD2YACz3jd08ffwAtei8nF0Ug7zBMdAAOAJiPOLCIsgBBFlifBMTFc2zctJCiizwgA===

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions