77
298
232
后起之秀
使用道具 举报
5
1334
1410
限制会员
22
272
254
初露锋芒
6
28
初来乍到
;; Program Bentangan Ducting Transisi Kotak ke Lingkaran;; DR2C Beta Version 0.0;; Program ini hanya bekerja untuk 4 segment;; Dibuat : Afrizanirman;; Email : udaaf@yahoo.co.id;; Tgl Pembuatan : 15/3/2012;; Tangent - Lee Mac;; Args: x - real(defun tan ( x ) (if (not (equal 0.0 (cos x) 1e-10)) (/ (sin x) (cos x)) ));; ArcSine - Lee Mac;; Args: -1 <= x <= 1(defun asin ( x ) (cond ( (equal (abs x) 1.0 1e-10) (* x pi 0.5) ) ( (< -1.0 x 1.0) (atan x (sqrt (- 1.0 (* x x)))) ) ));; ArcCosine - Lee Mac;; Args: -1 <= x <= 1(defun acos ( x ) (cond ( (equal x 1.0 1e-10) 0.0 ) ( (equal x -1.0 1e-10) pi ) ( (< -1.0 x 1.0) (atan (sqrt (- 1.0 (* x x))) x) ) ));; Hyperbolic Sine - Lee Mac;; Args: x - real(defun sinh ( x ) (/ (- (exp x) (exp (- x))) 2.0));; Hyperbolic Cosine - Lee Mac;; Args: x - real(defun cosh ( x ) (/ (+ (exp x) (exp (- x))) 2.0));; Hyperbolic Tangent - Lee Mac;; Args: x - real(defun tanh ( x ) (/ (sinh x) (cosh x)));; Area Hyperbolic Sine - Lee Mac;; Args: x - real(defun asinh ( x ) (log (+ x (sqrt (1+ (* x x))))));; Area Hyperbolic Cosine - Lee Mac;; Args: 1 <= x(defun acosh ( x ) (if (<= 1.0 x) (log (+ x (sqrt (1- (* x x))))) ));; Area Hyperbolic Tangent - Lee Mac;; Args: -1 < x < 1(defun atanh ( x ) (if (< (abs x) 1.0) (/ (log (/ (1+ x) (- 1.0 x))) 2.0) ));convert degree to radian(defun DTR (x) (* PI (/ x 180.0)) );defun;Global Variable untuk mengkonversi radian ke dalam degree(defun RTD (x) (* x (/ 180.0 PI)) );defun(defun c:DR2C () (setq oldOsmode (getvar "OSMODE"));Setting nilai default H1 = 200 mm(setq oldH1 200)(if (= (setq H1 (getreal (strcat "Masukan Nilai Awal H1" "<"(rtos oldH1)">"))) nil) (setq H1 oldH1) (setq H1 H1) );end if;Setting nilai default H2 = 150 mm(setq oldH2 150)(if (= (setq H2 (getreal (strcat "Masukan Nilai Awal H2" "<"(rtos oldH2)">"))) nil) (setq H2 oldH2) (setq H2 H2)