+ Reply to Thread
Results 1 to 5 of 5

Real Number function

  1. #1
    Registered User
    Join Date
    03-19-2009
    Location
    Wisconsin, USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Real Number function

    I am trying to find a real number function or the equivalent in Excel.

    I need to evaluate an arccos, but I can only use the real number answers. Here's the formula I'm working with:

    Probability.pdf

    And here's the Excel file:

    Real Numbers.xls

    The inputs for each calculation are in column A and the corresponding formulas are in column C. So far I'm only getting a #VALUE error except for one return.

    I've checked several books without success and I've done several searches online, but real number is so vague a phrase, none of the search results have been what I'm looking for (mostly dealing with converting text in "real" (actual, not written out) numbers).

    Ideally there would be a basic function for this so I would only have to type REAL(ACOS(X)), but that doesn't seem to be the case (or I just haven't found it).

    Thanks for the help.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Real Number function

    IMREAL returns the real part of a complex number. If that doesn't do what you want, provide some more background.
    Last edited by shg; 03-19-2009 at 08:33 PM.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Real Number function

    Hi,

    The ACOS() function requires the cosine of the number you specify, and the cosine must be between -1 and 1.

    The result of your ACOS((A4^2+A5^2-9)/(2*A4*A5)) using your inputs falls outside these limits, hence your error.

    What do you mean by a real number function?

    Rgds
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    03-19-2009
    Location
    Wisconsin, USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Real Number function

    What I mean is a function like ABS() or SUM() or AVERAGE() which would only return real numbers. My advanced graphing calculator (TI-92) has such a function and when I enter those formulas which give the #VALUE error, I get the correct answer.

    I could just type in the same formula on my calculator and change the variables each time, but that would be about 100+ manual calculations by the time I would be through all the data. Doing it in Excel would be much much easier.

    Also, the IMREAL() function doesn't work either. Thanks though.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Real Number function

    If you're looking to get the real part of the acos, you need to take the imaginary arc cosine, which is a lot more complicated than what you have.

    Excel can do it, but if you've invested all the effort you choose to, that's fine.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1