find tangent point by lisp

Discussion in 'AutoCAD' started by ABC Computers Services, Apr 1, 2005.

  1. hi friends,

    can anybodt know how to find tangent point in autolisp
    cos and sin func. are there in autolisp. but tan is not there
    somebody pls help me.

    shailu,
    ABC Computers.SERVIC
    http://www.freewebs.com/amitvedak
     
    ABC Computers Services, Apr 1, 2005
    #1
  2. ABC Computers Services

    DEVCS.com Guest

    (tan) function is not available in autolisp
     
    DEVCS.com, Apr 1, 2005
    #2
  3. tan funtion is not there,
    but u need to calculate trough trignomentry
     
    1234567 CAD Softwares, Apr 1, 2005
    #3
  4. shailu,

    i have developed func in my PC not here but at home.
    pls mail me at
    i'll send it to u by eml.

    regards
    unknown
    1234567 CAD Software developments
    www.yahoo.com
     
    1234567 CAD Softwares, Apr 1, 2005
    #4
  5. ABC Computers Services

    Jürg Menzi Guest

    Hi Shailu

    (defun MeTan (Ang)
    (/ (sin Ang) (cos Ang))
    )

    Cheers
     
    Jürg Menzi, Apr 1, 2005
    #5
  6. Juerg Menzi,

    thanks for this func.

    how di u put ur signature below.
    is there any option.
    pls reply
    thanks
     
    1234567 CAD Softwares, Apr 1, 2005
    #6
  7. Hi,

    Don't forget to check for Ang = Pi/2 etc where (cos Ang) = 0 and this gives
    an error.

    --


    Laurie Comerford
    CADApps
    www.cadapps.com.au
     
    Laurie Comerford, Apr 1, 2005
    #7
  8. ABC Computers Services

    Jürg Menzi Guest

    Hi Laurie

    You're right, should be:
    (defun MeTan (Ang)
    (cond
    ((= (cos Ang) 0.0) (if (minusp Ang) -1.0E24 1.0E24))
    ((/ (sin Ang) (cos Ang)))
    )
    )

    Cheers
     
    Jürg Menzi, Apr 1, 2005
    #8
  9. ABC Computers Services

    Amit Vedak Guest

    hi,

    really nice to know a perfect function
    cheers

    Amit Vedak
    Devyani CAD Software Developments.
    http://devcs.com
     
    Amit Vedak, Apr 1, 2005
    #9
  10. ABC Computers Services

    Jürg Menzi Guest

    Hi 1234567 CAD Softwares

    Welcome...¦-)

    In Netscape:
    Preferences -> Mail & Newsgroups -> Identity -> Signature file or VCard
    I use a txt file with signature text.

    In other newsreaders you will find something similar.

    Not possible in web browser, maybe copy/paste a signature...

    Cheers
     
    Jürg Menzi, Apr 1, 2005
    #10
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.