# # canola - canon canola 1614p emulator # Copyright (C) 2011 Peter Miller # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 3, as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License along # with this program. If not, see . # ; ---------- Card-Pocket-Begin ------------------------------------------- ; Title: MS-19: Polar to Rectangular ; Accuracy: 10 digits ; Color: green ; Style: blank ; ---------- Card-Pocket-End --------------------------------------------- ; ; Input: M14 => r ; M13 => theta (in degrees) ; ; Output: M14 => x ; M13 => y ; SFJ $305 .017453292519943 * RM13 SM12 += SM13 RV 90 M12 RV * RM12 += SM12 CM9 FJ $409 2 SM10 RV * -= SM11 FJ $410 RV * RM11 / RM10 += 1 M10 RV / RM10 += M12 1 M10 RV * .1 += MJ $410 CS MJ $410 RM9 MJ $411 RM13 RM12 SM13 RV SM12 1 CS M9 RV UJ $409 FJ $411 RM14 * RM13 += SM14 RV * RM12 += SM13 SRJ