(setq ans (strcat objid " = " len " x "(chr40) len " - " d1 (chr41)" x "(chr40) len " - " d2 (chr41)" x "(chr40) len " - " d3 (chr41)" ""= "(rtos area 22)" τ.μ"))
20.07=Hram la Biserica alba, din spatele Manastirii Antim Ivireanul More safety,always you must use (sqrt(abs x)) and not (sqrt x). http://lisp2arx.3xforum.ro/post/132/pp_topoxcad_vlax_-_Arien_Heron_formulas/ (http://lisp2arx.3xforum.ro/post/132/pp_topoxcad_vlax_-_Arien_Heron_formulas/)
Title: Re: Help with a lisp code- heron formula
Post by: roy_043 on July 23, 2020, 02:28:59 AM
Title: Re: Help with a lisp code- heron formula
Post by: PM on July 23, 2020, 08:48:20 AM
can any one tell me were is the problem with this formula. The heron formula is corect but the results is wrong ???
Thanks
Title: Re: Help with a lisp code- heron formula
Post by: roy_043 on July 23, 2020, 09:27:05 AM
The code you are using is a bit of a mess. It cannot handle triangles that are subdivided by extra lines. You should go back to the code by rlx and work from there.
Happy coding! 8-)
Title: Re: Help with a lisp code- heron formula
Post by: PM on July 23, 2020, 11:49:18 AM
Rlx gives me this code and i did same changes in the code.