FHB Logo Facebook LinkedIn Email Pinterest Twitter X Instagram Tiktok YouTube Plus Icon Close Icon Navigation Search Icon Navigation Search Icon Arrow Down Icon Video Guide Icon Article Guide Icon Modal Close Icon Guide Search Icon Skip to content
Subscribe
Log In
  • How-To
  • Design
  • Tools & Materials
  • Restoration
  • Videos
  • Blogs
  • Forum
  • Magazine
  • Members
  • FHB House
  • Podcast
Log In

Discussion Forum

Discussion Forum

Trig Functs in Excel

john7g | Posted in General Discussion on February 14, 2009 04:10am

How do you get inverse Tangent, Inverse Cosine, & Inverse Sine in Excel 2003? 

Say for instance I want a cell to autmatically calculate the angle for a common rafter with a pitch of 5/12.  Since 12 is the standard run, a cell only need the rise of 5 entered but what’s the formula to enter in the cell to get me 22.61986495° ?

I know how to do this on a calculator, I just want to see it done in Excel.

7g

Reply
  • X
  • facebook
  • linkedin
  • pinterest
  • email
  • add to favorites Log in or Sign up to save your favorite articles

Replies

  1. HammerHarry | Feb 14, 2009 05:34am | #1

    inverse sine = arcsine = asin in excel; acos and atan, i think

    but i think the result is in radians, so you have to convert to degrees from that.

    i think

     

    1. john7g | Feb 14, 2009 05:22pm | #8

      thanks Harry,

      I've never thought of inv. Tan as arctan but you gave the clue to lead me to http://en.wikipedia.org/wiki/Arc_tangent which gave me a better (although not completely clear) understanding.  Maybe I was taught about arc tan, arcsin, arccos way back in the way-backs but inv. tan, etc. overwrote it all.  Now I kinda see the logic to ATAN, ACOS, ASIN. 

  2. smllr | Feb 14, 2009 05:41am | #2

    =degrees(atan(5/12))

  3. User avater
    Dam_inspector | Feb 14, 2009 05:56am | #3

    cell contents=DEGREES(ATAN(---your rise dived by run---))

    1. john7g | Feb 14, 2009 03:47pm | #4

      thanks guys, I'll give that a try

      1. brownbagg | Feb 14, 2009 04:28pm | #5

        i need more detail, i been trying to figure this for the last year. need examples

        1. User avater
          Dam_inspector | Feb 14, 2009 04:40pm | #6

          This is the function.

        2. User avater
          Dam_inspector | Feb 14, 2009 04:41pm | #7

          Here it is.

          1. john7g | Feb 14, 2009 05:29pm | #9

            weird, for some reason I couldn't get it to work but then closed and reopened the sheet and it works great. 

        3. john7g | Feb 14, 2009 05:45pm | #10

          find the wiki link I posted, might help make it click for you 

          ASIN = inverse SineACOS = inverse CosineATAN = inverse Tan

          =(ASIN(opp/hyp))=(ACOS(adj/hyp))=(ATAN(opp/adj))

          1. JoeBartok | Feb 14, 2009 06:41pm | #11

            Arcsine, arccosine and arctangent are the correct descriptions of the "inverse" trig functions. Angles are correctly measured in radians, the ratio of the arc length/radius.

             View Image

            We are actually calculating the arc length if given the sine, or the arc length if given the cosine, or the arc length if given the tangent, as the case may be. The arc in question is for a circle of unit radius. However, if the radius does not equal one the radian measure of the angle is unaffected since the radius and arc length increase proportionally with respect to one another.

            Joe Bartok

            Edited 2/14/2009 10:42 am ET by JoeBartok

            Edited 2/14/2009 10:42 am ET by JoeBartok

          2. junkhound | Feb 14, 2009 07:57pm | #12

            Doing transfer functions for shielded cables among other tasks requires hyperbolic trig functions of complex numbers.

            Do you know a way in excell to do that except for multiple columns, then taking the square root of sums of squares and doing the hperpolic functions on those products.?

            Matlab and Mathcad exell aint....

          3. JoeBartok | Feb 14, 2009 09:02pm | #13

            Junkhound, this is something I haven't considered. I have an online Complex Number Calculator but it won't crunch trig functions.

            For imaginary numbers, i ...

            cosh (ix) = cos x

            sinh (ix) = i sin x

            Wikipedia article ... Hyperbolic function

            For a complex number, z ...

            cosh(z) = cos(iz)

            sinh(z) = – i cos(iz)

            Complex Hyperbolic Functions

            The only way other than using the trigonometric relations (that I can see) is to have a series of cells calc the real and imaginary terms based on the exponential function ... e.

            Joe Bartok

            Edited 2/14/2009 1:04 pm ET by JoeBartok

          4. JoeBartok | Feb 14, 2009 10:17pm | #14

            Junkhound, as usual on a Saturday I am running out of Internet time (just when someone post a really interesting question ... also as usual). Nor do I have time to scan my math notes to show the derivation of the formula in the image below.

            If you elect to use the exponential function based formulas for your worksheet you will find the relationship useful. This is the formulation I used in my web-based calculator to raise a complex base to a complex exponent.

            Since your base is e + 0i, r = 1 and theta = zero, dramatically simplifying the formula.

            Real Compnent = e ^ a × cos b

            Imaginary Component = i(e ^ a × sin b)

            You can use my online calculator to check the powers of (e + 0i)^(a + bi) against the values returned by your spreadsheet.

            Hope this helps you out ...

             

            Joe Bartok

            Edited 2/14/2009 2:18 pm ET by JoeBartok

            Edited 2/14/2009 2:36 pm ET by JoeBartok

            Edited 2/14/2009 2:50 pm ET by JoeBartok

          5. JoeBartok | Feb 14, 2009 11:15pm | #15

            Another way to express the hyperbolic functions of complex numbers. This looks like the easiest way to go with your Excel formulations ...

            cosh (a + bi) = cosh a cos b + i sinh a sin b

            sinh (a + bi) = sinh a cos b + i cosh a sin b

             Joe Bartok

          6. junkhound | Feb 14, 2009 11:50pm | #17

            sinh (a + bi) = sinh a cos b + i cosh a sin b

            Even with those, to be able to reduce to amplitude and phase the spreadsheet needs a few more columns to do the vector sums.

            Probably wont need to do that stuff if I ever retire, the programs that do do it all are probably beyond what I'd want to spend for a 'hobby'/ <G>

          7. [email protected] | Feb 15, 2009 07:35pm | #27

            You can get old versions of MathCad on eBay, quite inexpensively. 

          8. JoeBartok | Feb 14, 2009 11:54pm | #18

            Here is a quick worksheet using the relations ...

            cosh (a + bi) = cosh a cos b + i sinh a sin b

            sinh (a + bi) = sinh a cos b + i cosh a sin b

            I tested the results against cosh ix and sinh ix formulas based on powers of e produced by my Complex Number Calculator and both methods agree dead on. The formulas in the images below are from Wikipedia ... Hyperbolic Functions

            View Image

            View ImageJoe Bartok

          9. User avater
            BossHog | Feb 15, 2009 04:10am | #19

            To convert radians to angles you either multiple by Pi/180 or 180/Pi. I can't recall which one it is...

          10. mike585 | Feb 15, 2009 04:22am | #20

            <To convert radians to angles you either multiple by Pi/180 or 180/Pi. I can't recall which one it is...>

            Multiply radians by 180/pi to get degrees.

          11. junkhound | Feb 15, 2009 06:20am | #21

            Used to ask my mom when a little kid after reading it somewhere without understanding,  that how come if there were 2 pie raisins in a circle, she only put in one box.

            Guess it was 'cause we wuz poor, the box with the recipe on the back said use two boxes!

            One bad thing about being cheap, even now can NEVER get DW to put 2 bags of chips in a CC cookie recipe, even though the bags are only 12 or even just 10 oz now, used to be 16 oz. 

          12. mike585 | Feb 15, 2009 06:39am | #22

            Live cheap, live long.  I don't suppose the bank is beating on your door for mortgage, car, or boat payments.  You can credit your mother for not spoiling you.  Reward yourself with a chocolate chip cookie.

             

          13. cargin | Feb 15, 2009 07:20am | #23

            junkhound

            even now can NEVER get DW to put 2 bags of chips in a CC cookie recipe

            You could try making the cookies yourself.

            Nah maybe that's a crazy idea.

            My problem is I like the cookie dough too much. LOL

            Rich

             

             

             

          14. junkhound | Feb 15, 2009 03:36pm | #24

            You could try making the cookies yourself.

            Only problem with that is then I get the " aren't you fat enough without making those 'fat pills' " <G> 

            DW used to go to teachers conferences when the boys were teens, did the boys an' I ever pig out then, first thing was to make 6 chocolate merangue pies and 3 bag CC cookies, ate'm all before DW got back home, but forgot to do the dishes in time one year, but that's another story.......

            As for  ----  My problem is I like the cookie dough too much. LOL  --  Since about the mid 70's when a friend of DW's had salmonela from eating uncooked eggs, I take even a lick on the beaters and get a salmonela lecture...

            Signed:  'Junior cook of tomorrow, IL state fair, 1957'  - still got the trophy......and probably a few dimes yet from the few dolars prizes!

          15. cargin | Feb 15, 2009 03:44pm | #25

            junkhound

            ROFLOL

            I miss judged you.

            I thought you were going to tell me you couldn't boil water.

            Rich

          16. curley | Feb 15, 2009 05:44pm | #26

            You guys should have FHB do an article on their next issue on this topic. Have the resident genius Mike Gurten (I know its spelled wrong) do the article

             

          17. [email protected] | Feb 15, 2009 07:52pm | #28

            Okay, since you seem to be well versed in excell; do you know how to do a Heaviside Function in it?

          18. JoeBartok | Feb 17, 2009 06:28pm | #29

            No idea. I Googled Heaviside Step Function and can honestly say I haven't a ****** clue what the article is about.

            If it's the integral that is causing headaches (there's no quick-and-dirty Excel function for this that I am aware of) I do have a couple of suggestions. Simpson's Rule. Or expand the function into a convergent series and integrate term by term.

             Joe Bartok

          19. [email protected] | Feb 17, 2009 08:27pm | #30

            Basically the Heaviside function has a value of zero, below the threshold, and a real value above the threshold. 

            I.E.  y=0 for x<3, and y=4 for x>=3, would be written as H(3,4).

            It is useful for generating shear and moment diagrams for structures.   You use the Heaviside function to add in the point loads as you work across the structure, calculating the shear loads. 

            We learned how to do it in Mathcad when I was in college, but I can't justify the cost of Mathcad, to analyze the couple of simple four stringer bridges I design each year. 

             

          20. JoeBartok | Feb 17, 2009 08:49pm | #31

            A couple of nested "IF" operators will return the definition of the Heaviside Step Function in the image at the top of the page:

            0 when x < 0

            .5 when x = 0

            1 when x > 0

            The formula is ... =IF(A1<0,0,(IF(A1=0,0.5,1)))Joe Bartok

          21. JoeBartok | Feb 17, 2009 08:53pm | #32

            Forgot to attach the worksheet.Joe Bartok

            File format
  4. cargin | Feb 14, 2009 11:24pm | #16

    john

    I think it is great to make your own worksheets.

    But for those of us who don't understand trig there is Joe Fusco's roof cutting worksheet.

    http://www.josephfusco.org/Calculators/Simple%20Roof%20Calculator.html 

    Rich

Log in or create an account to post a comment.

Sign up Log in

Become a member and get full access to FineHomebuilding.com

Video Shorts

Categories

  • Business
  • Code Questions
  • Construction Techniques
  • Energy, Heating & Insulation
  • General Discussion
  • Help/Work Wanted
  • Photo Gallery
  • Reader Classified
  • Tools for Home Building

Discussion Forum

Recent Posts and Replies

  • |
  • |
  • |
  • |
  • |
  • |
View More Create Post

Up Next

Video Shorts

Featured Story

FHB Summit 2025 — Design, Build, Business

Join some of the most experienced and recognized building professionals for two days of presentations, panel discussions, networking, and more.

Featured Video

How to Install Exterior Window Trim

Learn how to measure, cut, and build window casing made of cellular PVC, solid wood, poly-ash boards, or any common molding material. Plus, get tips for a clean and solid installation.

Related Stories

  • Guest Suite With a Garden House
  • Podcast Episode 688: Obstructed Ridge Vent, Buying Fixer-Uppers, and Flashing Ledgers
  • FHB Podcast Segment: Finding the Right Fixer-Upper
  • Keeping It Cottage-Sized

Highlights

Fine Homebuilding All Access
Fine Homebuilding Podcast
Tool Tech
Plus, get an extra 20% off with code GIFT20

"I have learned so much thanks to the searchable articles on the FHB website. I can confidently say that I expect to be a life-long subscriber." - M.K.

Get home building tips, offers, and expert advice in your inbox

Signing you up...

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
See all newsletters
See all newsletters

Fine Homebuilding Magazine

  • Issue 332 - July 2025
    • Custom Built-ins With Job-Site Tools
    • Fight House Fires Through Design
    • Making the Move to Multifamily
  • Issue 331 - June 2025
    • A More Resilient Roof
    • Tool Test: You Need a Drywall Sander
    • Ducted vs. Ductless Heat Pumps
  • Issue 330 - April/May 2025
    • Deck Details for Durability
    • FAQs on HPWHs
    • 10 Tips for a Long-Lasting Paint Job
  • Issue 329 - Feb/Mar 2025
    • Smart Foundation for a Small Addition
    • A Kominka Comes West
    • Making Small Kitchens Work
  • Issue 328 - Dec/Jan 2024
    • How a Pro Replaces Columns
    • Passive House 3.0
    • Tool Test: Compact Line Lasers

Fine Home Building

Newsletter Sign-up

  • Fine Homebuilding

    Home building tips, offers, and expert advice in your inbox.

  • Green Building Advisor

    Building science and energy efficiency advice, plus special offers, in your inbox.

  • Old House Journal

    Repair, renovation, and restoration tips, plus special offers, in your inbox.

Signing you up...

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
See all newsletters

Follow

  • Fine Homebuilding

    Dig into cutting-edge approaches and decades of proven solutions with total access to our experts and tradespeople.

    Start Free Trial Now
    • Facebook
    • Instagram
    • X
    • LinkedIn
  • GBA Prime

    Get instant access to the latest developments in green building, research, and reports from the field.

    Start Free Trial Now
    • Facebook
    • YouTube
  • Old House Journal

    Learn how to restore, repair, update, and decorate your home.

    Subscribe Now
    • Facebook
    • Instagram
    • X
  • Fine Homebuilding

    Dig into cutting-edge approaches and decades of proven solutions with total access to our experts and tradespeople.

    Start Free Trial Now
    • Facebook
    • Instagram
    • X
    • LinkedIn
  • GBA Prime

    Get instant access to the latest developments in green building, research, and reports from the field.

    Start Free Trial Now
    • Facebook
    • YouTube
  • Old House Journal

    Learn how to restore, repair, update, and decorate your home.

    Subscribe Now
    • Facebook
    • Instagram
    • X

Membership & Magazine

  • Online Archive
  • Start Free Trial
  • Magazine Subscription
  • Magazine Renewal
  • Gift a Subscription
  • Customer Support
  • Privacy Preferences
  • About
  • Contact
  • Advertise
  • Careers
  • Terms of Use
  • Site Map
  • Do not sell or share my information
  • Privacy Policy
  • Accessibility
  • California Privacy Rights

© 2025 Active Interest Media. All rights reserved.

Fine Homebuilding receives a commission for items purchased through links on this site, including Amazon Associates and other affiliate advertising programs.

  • Home Group
  • Antique Trader
  • Arts & Crafts Homes
  • Bank Note Reporter
  • Cabin Life
  • Cuisine at Home
  • Fine Gardening
  • Fine Woodworking
  • Green Building Advisor
  • Garden Gate
  • Horticulture
  • Keep Craft Alive
  • Log Home Living
  • Military Trader/Vehicles
  • Numismatic News
  • Numismaster
  • Old Cars Weekly
  • Old House Journal
  • Period Homes
  • Popular Woodworking
  • Script
  • ShopNotes
  • Sports Collectors Digest
  • Threads
  • Timber Home Living
  • Traditional Building
  • Woodsmith
  • World Coin News
  • Writer's Digest
Active Interest Media logo
X
X
This is a dialog window which overlays the main content of the page. The modal window is a 'site map' of the most critical areas of the site. Pressing the Escape (ESC) button will close the modal and bring you back to where you were on the page.

Main Menu

  • How-To
  • Design
  • Tools & Materials
  • Video
  • Blogs
  • Forum
  • Project Guides
  • Reader Projects
  • Magazine
  • Members
  • FHB House

Podcasts

  • FHB Podcast
  • ProTalk

Webinars

  • Upcoming and On-Demand

Podcasts

  • FHB Podcast
  • ProTalk

Webinars

  • Upcoming and On-Demand

Popular Topics

  • Kitchens
  • Business
  • Bedrooms
  • Roofs
  • Architecture and Design
  • Green Building
  • Decks
  • Framing
  • Safety
  • Remodeling
  • Bathrooms
  • Windows
  • Tilework
  • Ceilings
  • HVAC

Magazine

  • Current Issue
  • Past Issues
  • Magazine Index
  • Subscribe
  • Online Archive
  • Author Guidelines

All Access

  • Member Home
  • Start Free Trial
  • Gift Membership

Online Learning

  • Courses
  • Project Guides
  • Reader Projects
  • Podcast

More

  • FHB Ambassadors
  • FHB House
  • Customer Support

Account

  • Log In
  • Join

Newsletter

Get home building tips, offers, and expert advice in your inbox

Signing you up...

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
See all newsletters
See all newsletters

Follow

  • X
  • YouTube
  • instagram
  • facebook
  • pinterest
  • Tiktok

Join All Access

Become a member and get instant access to thousands of videos, how-tos, tool reviews, and design features.

Start Your Free Trial

Subscribe

FHB Magazine

Start your subscription today and save up to 70%

Subscribe

Enjoy unlimited access to Fine Homebuilding. Join Now

Already a member? Log in

We hope you’ve enjoyed your free articles. To keep reading, become a member today.

Get complete site access to expert advice, how-to videos, Code Check, and more, plus the print magazine.

Start your FREE trial

Already a member? Log in

Privacy Policy Update

We use cookies, pixels, script and other tracking technologies to analyze and improve our service, to improve and personalize content, and for advertising to you. We also share information about your use of our site with third-party social media, advertising and analytics partners. You can view our Privacy Policy here and our Terms of Use here.

Cookies

Analytics

These cookies help us track site metrics to improve our sites and provide a better user experience.

Advertising/Social Media

These cookies are used to serve advertisements aligned with your interests.

Essential

These cookies are required to provide basic functions like page navigation and access to secure areas of the website.

Delete My Data

Delete all cookies and associated data