• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

command arcsene and archosene

  • Thread starter Thread starter bnfnrc88
  • Start date Start date

bnfnrc88

Guest
I have found no reference to the use of rainbow and rainbow commands in the lisp language.

can you tell me if they are usable or how can you act to get them? Thank you.
 
sin

returns the sine of an angle as a real number expressed in radians

(sin ang)

cos

returns the cosine of an angle expressed in radians

(cos ang)
 
:biggrin:
Do you mean how to write functions?
In this case they are asin e stalking
according to me bnfnrc88 must make a calculation solved with breast and cosine, I am curious to know.. .

rainbow and rainbow are the respective inverse functions, i.e. breast and cosine elevated to -1, should solve with function
expt returns a high number to a given power
(expt number power)

or perhaps, more simply, with 1/sen 1/cos :biggrin:


I don't remember. .
 
My intelligence sometimes surprises me. . .

I had also thought of the -1 as the command asin in lisp is not contemplated. . .

But with at -1 he did not give me the result ok. doing it short: Since I had 2 sides of the triangle I had to get the corner, the only trigonometric formula that allowed me the calculation needed a rainbow. not having the command I calculated the third side with the Pythagorean theorem and then I could use the command "atan" that instead is present in lisp.:finger:
 
.... not having the command I calculated the third side with Pythagoras theorem and I could therefore use the command "atan" that instead is present in lisp.:finger:
And less bad, with the solution I've been through you, you wouldn't have gone anywhere, I'll turn a tape back... .

provided that there is no "direct" function in lisp for the calculation of the bow, but autocad provides the geometric calculator, I often use it in the lisp, among the standard numerical functions there are also:
Assistant(real) returns the rainbow of the number.acos(real) returns the rainbow of the number.

the number must be between -1 and 1


making a practical example with a classic rectangle 3-4-5 triangle we have:

cate a=3.0 - cateto b=4.0 - hypotenuse c=5.0

since sen_alfa = opposite catheter/hypotenusa it comes that:

sen_alfa = a/c
sen_alfa = 3.0/5.0 = 0.6


then we apply the function alpha = asin(0.6) in lisp:

(setq sen_alpha (/3.0 5.0))
(horse "alpha= asin(s_alpha) --> returns alpha value


.
 
oppure, senza scomodare la calcolatrice, (da afralisp, ma chiunque può ricavarli con poche basi di trigonometria)

Asin
;-1 backwards = and tax=1
;returns inverse without in radians
(defun asin (y)
(atan and (sqrt (- 1 (* and)))
)
;acos
;-1 backwards = and tax=1
;returns inverse cos in radians
(defun acos (y)
(atan (sqrt (- 1 (* and))) and
)
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top