Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 1.35 KB

File metadata and controls

22 lines (15 loc) · 1.35 KB

FortranDefinedOperators

User-Defined operators and Derived-Type editing in Fortran. Бинарные операторы и производные типы в Фортран

Task 1. Describe a derived type "triangle", a given array and a vertex, and specify the binary operator .zoom., Where t.zoom.2 means creating an enlarged proportional triangle with centers of mass at the same point.

Task 2. Describe the derived type "triangle" defined by an array of vertices and specify a binary operator .rotate., where t.rotate.45 means rotation of the triangle clockwise. 45 degrees

  1. Задача. Описать производный тип "треугольник", задаваемый массивом вершин, и задать бинарный оператор .zoom., где t.zoom.2 означает создание увеличенного пропорционально треугольника с центром масс в той же точке.

  2. Задание. Описать производный тип "треугольник", задаваемый массивом вершин, и задать бинарный оператор .rotate., где t.rotate.45 означает поворот треугольника по ч.с. на 45 градусов

==================================

Two operators are implemented in program : .zoom. and .rotate.