Advertisement
antogv98

Untitled

Mar 20th, 2020
2,584
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ada 0.62 KB | None | 0 0
  1. package Numeros_complejos is
  2.    type complejo is private;
  3.    --igualdad y asignación definidas
  4.    function constructor(X,Y: float) return complejo;
  5.    function "+"(X,Y :complejo) return complejo;
  6.    function "-"(X,Y :complejo) return complejo;
  7.    function "*"(X,Y :complejo) return complejo;
  8.    function "/"(X,Y :complejo) return complejo;
  9.    function conj(X: complejo) return complejo;
  10.    function P_real(X:complejo) return Float;
  11.    function P_imaginaria(X:complejo) return Float;
  12.  private  type complejo is
  13.       record
  14.          P_real: Float;
  15.          P_imaginaria: Float;
  16.       end record;
  17. end Numeros_complejos;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement