airyai

airyai(x)

Airy function $\operatorname{Ai}(x)$.

Examples

In the Julia programming language, the function airyai(x) calculates the Airy function Ai(x).

julia> airyai(1.0)
0.13529241631288188

Here are some examples of how to use the airyai function:

  1. Calculate the Airy function at a specific value:

    julia> airyai(2.5)
    -0.14415765226945194

    This example calculates the value of the Airy function Ai(2.5).

  2. Evaluate the Airy function for negative arguments:

    julia> airyai(-0.5)
    0.40141306234327373

    The airyai function can be used to compute the Airy function for negative values as well.

  3. Vectorized computation of the Airy function:
    julia> x = [-1.0, 0.0, 1.0, 2.0];
    julia> airyai.(x)
    4-element Array{Float64,1}:
    0.5355608832923527
    0.0
    -0.13529241631288188
    -0.14415765226945194

    The airyai function supports vectorized computation, allowing you to pass an array of values and obtain the corresponding Airy function values.

Common mistake example:

julia> airyai("abc")
ERROR: MethodError: no method matching airyai(::String)

In this example, the airyai function is called with a string argument ("abc"). The airyai function only accepts numeric arguments, so passing a string will result in a MethodError. Ensure that you provide valid numerical inputs when using the airyai function.

See Also

airy, airyai, airyaiprime, airybi, airybiprime, airyprime, airyx,

User Contributed Notes

Add a Note

The format of note supported is markdown, use triple backtick to start and end a code block.

*Required Field
Details

Checking you are not a robot: