19.11.2014 Views

The Fortress Language Specification - CiteSeerX

The Fortress Language Specification - CiteSeerX

The Fortress Language Specification - CiteSeerX

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

opr ⌈self ⌉: N<br />

realpart(self): Q<br />

imagpart(self): Q<br />

check(self): Q throws CastException<br />

check ∗ (self): Q ∗ throws CastException<br />

check < (self): Q < throws CastException<br />

check ≤ (self): Q ≤ throws CastException<br />

check ≥ (self): Q ≥ throws CastException<br />

check > (self): Q > throws CastException<br />

check≠(self): Q≠ throws CastException<br />

check ∗ (self): Q ∗ > throws CastException<br />

check ∗<br />

≠(self): Q ∗<br />

≠<br />

throws CastException<br />

check # (self): Q # > throws CastException<br />

check #<br />

≠<br />

(self): Q#<br />

≠<br />

throws CastException<br />

end<br />

25.1.1 oprjuxtaposition (self,other: Q): Q<br />

Juxtaposition of rational expressions is equivalent to using the multiplication operator · .<br />

25.1.2 opr +(self): Q<br />

<strong>The</strong> unary addition operator + simply returns its argument.<br />

25.1.3 opr +(self,other: Q): Q<br />

<strong>The</strong> binary addition operator + returns the sum of its arguments.<br />

For types Q ∗ and Q # , the sum of an infinity and either a finite rational or another infinity of the same sign is equal<br />

to the given infinity, but the sum of infinities of differing sign is 0/0 , and the sum of 0/0 and any rational value is<br />

0/0 .<br />

25.1.4 opr −(self): Q<br />

<strong>The</strong> unary negation operator − returns the negative of its argument.<br />

For types Q ∗ and Q # , the negative of +∞ is −∞ , the negative of −∞ is +∞ , and the negative of 0/0 is 0/0 .<br />

195

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!