Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I get Real valued and Complex valued math functions in Ada 95?

ADA complex functions Math Valued
0
Posted

How do I get Real valued and Complex valued math functions in Ada 95?

0

(from Jonathan Parker) Complex type and functions are provided by compilers that support the numerics Annex.

0

(from Jonathan Parker) Complex type and functions are provided by compilers that support the numerics Annex. The packages that use Float for the Real number and for the Complex number are: Ada.Numerics.Elementary_Functions; Ada.Numerics.Complex_Types; Ada.Numerics.Complex_Elementary_Functions; The packages that use Long_Float for the Real number and for the Complex number are: Ada.Numerics.Long_Elementary_Functions; Ada.Numerics.Long_Complex_Types; Ada.Numerics.Long_Complex_Elementary_Functions; The generic versions are demonstrated in the following example. Keep in mind that the non-generic packages may have been better tuned for speed or accuracy. In practice you won’t always instantiate all three packages at the same time, but here is how you do it: with Ada.Numerics.Generic_Complex_Types; with Ada.Numerics.Generic_Elementary_Functions; with Ada.Numerics.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.