@@ -754,13 +754,46 @@ end
754754 @test @jit (fn .(x_ra)) isa ConcreteRArray{Float32,2 }
755755 end
756756
757+ x2 = inv .(x)
758+ x2_ra = Reactant. to_rarray (x2)
759+
760+ @testset for fn in (acscd, asecd)
761+ @test @jit (fn .(x2_ra)) ≈ fn .(x2)
762+ @test @jit (fn .(x2_ra)) isa ConcreteRArray{Float32,2 }
763+ end
764+
765+ xrad = deg2rad .(x)
766+ xrad_ra = Reactant. to_rarray (xrad)
767+
768+ @testset for fn in (sind, cosd, tand, cscd, secd, cotd, asind, acosd, atand, acotd)
769+ @test @jit (fn .(xrad_ra)) ≈ fn .(xrad)
770+ @test @jit (fn .(xrad_ra)) isa ConcreteRArray{Float32,2 }
771+ end
772+
757773 x = 0.235f0
758774 x_ra = Reactant. to_rarray (x; track_numbers= Number)
759775
760- @testset for fn in (sinpi, cospi, tanpi, sin, cos, tan)
776+ @testset for fn in (sinpi, cospi, tanpi, sin, cos, tan, asind, acosd, atand, acotd )
761777 @test @jit (fn .(x_ra)) ≈ fn .(x)
762778 @test @jit (fn .(x_ra)) isa ConcreteRNumber{Float32}
763779 end
780+
781+ x2 = inv (x)
782+ x2_ra = Reactant. to_rarray (x2; track_numbers= Number)
783+
784+ @testset for fn in (acscd, asecd)
785+ @test @jit (fn .(x2_ra)) ≈ fn .(x2)
786+ @test @jit (fn .(x2_ra)) isa ConcreteRNumber{Float32}
787+ end
788+
789+ xrad = deg2rad (x)
790+ xrad_ra = Reactant. to_rarray (xrad; track_numbers= Number)
791+
792+ @testset for fn in (sind, cosd, tand, cscd, secd, cotd)
793+ @test @jit (fn .(xrad_ra)) ≈ fn .(xrad)
794+ @test @jit (fn .(xrad_ra)) isa ConcreteRNumber{Float32}
795+ end
796+
764797 @testset for fn in (sincospi, sincos)
765798 res = @jit fn (x_ra)
766799 @test res[1 ] ≈ fn (x)[1 ]
0 commit comments