10.05.2011 16:33    

k005
Merhaba arkadaşalar;

aşagıdaki bordurby değişkenine if yapısı eklemek istiyorum. şöyle ki;

R2 =0 we=gwe olduğunda : (setq bordurby (+ L we we))
R2 >0 we=gwe olduğunda : (setq bordurby (/(+ L we we) (cos1 R1)))
R2 >0 we # gwe olduğunda : (setq bordurby (/(+ L gwe gwe) (cos1 R1)))

böyle olmasını istiyorum.. (# işareti eşit değil anlamında kullandım.)

Kod:

(if = we gwe 0

(setq bordurby (+ L we we))
(setq bordurby (+ L gwe gwe))
(setq bordurby (/(+ L we we) (cos1 R1)))
(setq bordurby (/(+ L gwe gwe) (cos1 R1)))


yardımcı olacak arkadaş(a) lara şimdiden teşekkürler... kolay gelsin..

10.05.2011 17:19    

ProhibiT
Cond fonksiyonunu kullanarak çözebilirsiniz.
Kod:

(cond
   ((test1) (result1))
   ((test2) (result2))
   ((test3) (result3))
   .
   .
   ((test n) (result n))
)

Kolay gelsin

10.05.2011 17:25    

k005
Alıntı
ProhibiT :
hocam nasıl yani, ? test1 derken?

> 1 <
Copyright © 2004-2022 SQL: 0.636 saniye - Sorgu: 50 - Ortalama: 0.01271 saniye