How can I compute a very precise value for e?

So I've been looking around for a good algorithm to compute a very precise value for e. All the algorithms I've found all use a derivative of the old summation from 1->n of 1/n!. And this is accurate, however I need to calculate e out to several thousand decimal places and you simply cannot accuratly represent something of that precision with a common floating point variable.
Basically what I need is a method to seqentially calculate one decimal place at a time, or some kind of spigot algorithm where I can calculate a single nth decimal place. I've tried googling and searching these forums without any luck. I know there are spigot algorithms for PI and that there are ways to relate PI to e so maybe I'll have to use a combination of those. Anyone got any ideas?

No it is not at all difficult to find the prime. And forgive me for being overly terse and jumping to conclusions in my posts. If I am wrong in my assumptions, I apologize. For thoses of you that are not following any of this, here is the back story:
I read in the newspaper yesterday that someone had placed a billboard ad that was a puzzle somewhere in sillicon valley specifing something like
[the first 10 consecutive digits in the decimal expansion of e that form a prime].com
I don't live in California and have not seen the ad and may have mis quoted it.
The article went on to say that Google had placed the ad, and that if you get the proper number and type it in you get to page that lists another puzzle. If you follow the chain of puzzles to the end you get an invite to submit a resume to Google.
I look at the forms this morning and find a post from someone that was thinking about needing e out to a large number of digits. When a practical method was suggested in the reply the OP points out that this is not for some "practical" purpose but for some "theoretical" purpose. I jumped to the conclusion that this was someone that wanted to solve the puzzle but didn't want to work to hard to do it.
My comments that the first 10 digit prime is 99 digits into the expansion it quite possibly irrelevant to the OPs original question. If there was some other "theoretical" purpose that requires some 800 Million digits of e, I apologize for my assumptions.
On the other hand if the OP just wanted to solve the Google puzzle, why not come clean, admit it, and tell us the problem that you want to solve rather than beating around the bush with nonsense about needing an algorithm that pops out the nth digit of e. I've already given you the spoiler of where it is in the expansion of e, If you want the rest of the spoiler, like what the digits are, and what the answer to the next question is as well, just ask.
Here is the BigInt Code
    BigInteger fac = BigInteger.ONE;
    BigInteger n = BigInteger.ONE;
    BigInteger scale =(new BigInteger("10")).pow(200);
    acc = scale; // this is the n=0 term because 0!=1
    int numTerms = 0;
    boolean done = false;
    while(!done){
      BigInteger nextTerm = scale.divide(fac);
      acc = acc.add(nextTerm);
      numTerms++;
      if (nextTerm.equals(BigInteger.ZERO)) done = true;
      //System.out.println(numTerms+":fac"+fac);
      n = n.add(BigInteger.ONE);
      fac = fac.multiply(n);
    System.out.println("Number of terms:" + numTerms);
    System.out.println("e to about 200 digits:" + acc);Go nuts!

Similar Messages

  • How can i change the list of values for the items of type displaying in a ACC in ID format to Name format?

    I have 2 tables venue and concert. i have imported dummy values from xml file and data is imported to db successfully. when i go to ACC, afer select my EventsRepository->concert->click list. showing results in ID formatEventRepository:Concert:70701.
    Can anyone tel me how to show my results by name?

    You need to set the display-property="<<Your name property>>" in item-descriptor tag.
    e.g. <item-descriptor name="myItem" display-property="name" />
    Cheers
    R

  • How can i compute the distance between every two strias

    how can i compute the distance between every two strias?The distances between every two strias in an image are almost equal .I have a picture for you in the accessory.there are many trias in all kinds of orientation in an image.fistly,i should find the most consious area,because it is simple to compute . Secondly,To improve precision,i should compute the distance of a group of trias,then conpute its average value.i dont know how to compute .pls teach me,thanks very much!
    Attachments:
    11.jpg ‏12 KB

    there is a typical image.
    Attachments:
    21.jpg ‏23 KB

  • How can I display more than one value in Calendar ?

    Hi,
    the standard (example) script allows for the display of one value only (as I understood). How can I display two or three values, from the very same table ? Students of mine during an HTMLDB workshop in Leipzig did ask that question.
    Do we have a more detailed docum. on the use of the calendar ?
    pls kindly advise. TIA.
    Bernhard

    my solution:
    Source fo the calendar starts:
    snip>
    declare
    q varchar(32767) := null;
    begin
    q := 'select "ETA", <--- Date Field and concatination of fields as follows:
    "SCHIFFSNAME"|| "ETA_TIME"|| "TERMINAL"||''(br*)'',
    null,
    null,
    null,
    null
    from "#OWNER#"."SCHEDULE"'; . . . . . . .
    snip>
    comment on (br*) - you have to use "<" and ">" instead of "( " and ")" to have the "break/new line effect"
    brgds
    Bernhard

  • I bought a new Macbook Pro, how can I get my very old macbook cleared of my stuff so I can give it to my grandson. I just want him to be able to use it.

    I bought a new Macbook Pro, how can I get my very old macbook cleared of my stuff so I can give it to my grandson. I just want him to be able to use it.

    Put your install DVD into the optical drive (CD/DVD drive) and reboot. Be sure to either use the disc that came with your Mac, or, if you installed a later Mac OS X version from disc, use the newer disc. As soon as you hear the boot chime, hold down the "c" key on your keyboard (or the Option Key until the Install Disk shows up) until the apple shows up. That will force your MacBook to boot from the install DVD in the optical drive.
    When it does start up, you'll see a panel asking you to choose your language. Choose your language and press the Return key on your keyboard once. It will then present you with an Installation window.
    Completely ignore this window and click on Utilities in the top menu and scroll down to Disk Utility and click it. You should see your hard drive in the left hand column along with your other drives. Click on the drive and select the Erase tab. Set the format value to Mac OS Extended (Journaled) and click the Erase button. After that has finished select the Partition tab. Type in a Name for your hard drive and select how many partitions you want from the Volume Scheme. The usual setting is one partition. Click on the Options button after you've selected a partition to make sure it's set for GUID. Then click the Apply button and after the Partitioning is done quit Disk Utility.
    You can now follow the instructions on the install screen             

  • How can I change the default apple ID for app store. I bought the macbook from my school when I left and I'm the ID in place of mine is the computer departments one. How can i change it to mine?? Thanks

    How can I change the default apple ID for app store. I bought the macbook from my school when I left and I'm the ID in place of mine is the computer departments one. How can i change it to mine?? Thanks

    http://support.apple.com/kb/ht5621

  • How can I remove my very old Apple ID from my Iphone 4S as I have created other apple IDs.The old one is still staying on my mobile but that email doesn't exist anymore. I cant rest my mobile as this email address is staying my icloud setting.

    Q:-
    How can I remove my very old Apple ID from my Iphone 4S. The old ID is still staying on my mobile but that email doesn't exist anymore. I cant rest my mobile as everytime i tried it asks ID password which I don't remember.

    Hello mushysun,
    Thanks for using Apple Support Communities.
    If you did not sign out of your Apple ID on your iPhone before creating a new one, then you will need to sign back in with your previous Apple ID and then sign out.  If you do not remember your password and do not have access to the email account, then you can reset your password by using the security questions.
    If you forgot your Apple ID password - Apple Support
    Have a great weekend,
    Alex H.

  • How can we pass the select-option value to modulepool program?

    hi,
      how can we pass the select-option value to modulepool program ?
      Because if i declared select-options in executable program and i used SSCRFIELDS to define push buttons in selection screen.
               My requirement if enter the values to select-options and press UPDATE pussbotton then i want call screen which contains tablecontrol.
               How i get select-option values to PAI of call screen for getting the data from database table to my internal table?

    Oh I thought that you have selection-screen and again you are working on dialog programming.
    if you want to use select-option directly in module pool then it is not possible.
    but you can do other way.
    create two varaiables
    data : v_kun_low like kna1-kunnr,
             v_kun_high like kna1-kunnr.
    use these two variables in layout ,let user knows that he can not give options like gt,lt,eq ,it will be always BT.
    and also when you see normal report program,you can use multiple values in either low or high,but here it is not possibel.
    use can enter only low value and high value.
    when you come to program point of view
    declare one range
    ranges r_kunnr for kna1-kunnr.
    do the coding like
    r_kunnr-low = v_kun_low.
    r_kunnr-high = v_kun_high.
    r_kunnr-options = 'BT'.
    r_kunnr-sign = 'I'.
    append r_kunnr.
    now you can use r_kunnr in select query ,it will work like select-option.
    other than this there is no option.
    Thanks
    Seshu

  • How can i restrict the Expenditure Type values at a specific OU ?

    Dear Guys,
    I would like to ask about the Expenditure Types,
    I have implemented two projects for different Operating Units ,
    when navigating to any Projects responsibilty,and navigating the Expenditure Type field
    the values exist are all the values implemented across the OU not the values entered at this OU
    How can i restrict the Expenditure Type values at a specific OU
    Regards
    Amr Hussien

    Hello
    When you set up a project there is an option called Transaction Control.
    This option allow you to list the allowed or restricted elements of costs for the project.
    You may enter the transaction control on a project template and that will be copied to any new project.
    The cost elements may be expenditure types, expenditures categories, suppliers, employees, etc.
    In your case, I suggest to set up specific project templates for each operating units. On each template enter the list of allowed expenditures types for that OU.
    Doing so, the system restricts users from entering any expenditure item, supplier invoice, purchase cost etc, against an expenditure type, which is not allowed.
    Dina

  • How can we read the screen field values from the report selection screen wi

    Hi expart,
    How can we read the screen field values from the report selection screen with out having an ENTER button pressed  .
    Regards
    Razz

    use this code...
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_posnr.
    **Read the Values of the SCREEN FIELDs
    CALL FUNCTION 'DYNP_VALUES_READ'

  • How can I create a start up disk for a old intel core duo running 10.5.8.. Computer works fine, but can't find install disk.

    How can I create a start up disk for a old intel core duo running 10.5.8.. Computer works fine, but can't find install disk. Want to use internal disk drive or USD flash drive.

    Try calling 1-800-676-2775.  Give the serial number and thy *may* still burn you new install disks designed just for the hrdware in your system (for a fee, something like $160 per disk).  *May* is only because they may not burn disks for Leopard anymore.
    If they do not burn them for you, you can buy Leopard disks off Amazon or eBay for about $200.
    Have you considered Snow Leopard?.  Those disks only cost $19 (single user) or $29 (5-user license) through Apple by calling 1-800-MY-APPLE.

  • I have an iCloud email address on my iMac. How can I create an icloud email address for my wife on the same computer?

    I have an iCloud email address on my iMac. How can I create an icloud email address for my wife on the same computer?

    If all you want is an additional email address you can create up to three 'email aliases'  - these are additional addresses (not accounts) which deliver into the same inbox as the main account.
    You should be aware before you start that once you've created an alias you cannot turn that address into a full iCloud account, move it to another account, or reactivate it if you delete it.
    More information on aliases here:
    http://help.apple.com/icloud/#mm6b1a490a
    If you want to keep her email separate from yours she will need to create a new Apple ID, and use it to create a new iCloud account either on a separate computer or on a separate User Account on your Mac.

  • How can I monitor my monthly data usage for all 3 computers in my house? I have an Airport base station and it seems there should be software to monitor it from that point rather than monitoring the usage for each computer and then adding it up.

    How can I monitor my monthly data usage for all 3 computers in my house? I have an Airport base station and it seems there should be software to monitor it from that point rather than monitoring the usage for each computer and then adding it up.

    The following example was one of dozens that showed up on a simple Google search of.....
    monitor Internet data use on a Mac
    Watch your Internet usage with NetUse Monitor | Macworld
    Most service providers have an application for their users as well.

  • How can we pass the master report value in to detail  report

    Hi All,
    My question is how can I pass the master report value in to detail (Child) report filter?
    I mean I have one master report if I click on employee name then I have to pass the employee id in to details report filter. Then detail report will display data for that particular employee.
    How can I achieve this one in OBIEE?
    Please help me to resolve this issue. Thanks in advance for your time and support.

    In that case, you should look at using Go Url. In your column formula for the employee name, create a hyperlink to the detail report and pass the employee id.
    Take a look at this post: Re: Dyanmic display of the Image Link URL
    Thanks!

  • How can i copy and referencing the value of a sub-total of a category into another cell?

    How can i copy and referencing the value of a sub-total of a category into another cell?

    Cells in Category  rows 'exist' only when those categories are inserted using the Reorganize table. Those cells cannot be referenced from other cells.
    If you want a category summed, you will need to do that in a cell that is still visible when the table is not sorted into categorie using the Reorganize pane. The function to use is SUMIF. You can find information regarding SUMIF (and SUMIFS) in the iWork Formulas and Functions User Gude. The guide may be downloaded using the link in the Help menu in Numbers '09.
    Regards,
    Barry

Maybe you are looking for

  • Newsfeed with SharePoint Foundation 2013

    Hi, I want to have a couple of news feeds on my SharePoint Foundation 2013 Sites. I want everyone to comment on these news feeds. Which list/web part would do the best jobs? Each individual user should have the ability to have an aggregated view of a

  • SUBMIT and BACKGROUND Processing

    Dear ABAPers,        I have created the BDC Program.I want to run this in Background job. I want to call this program using SUBMIT Statement.How to do this.I Thanks & Regards, Ashok.

  • Save As dialog box opens random location

    I have been trying to save some attachments from my emails in entourage, but whenever it brings up the save dialog box, the default finder location is completely random. It is not based on my last known location, nor a default 'Desktop' or 'Documents

  • [SOLVED] Xorg reads F1 and F4 keys as the windows key (Super_L)

    Hello, everyone. I'm new to Arch and I really like it. I'm currently trying to configure i3 to switch workspaces with the function keys, but some of them (F1 and F4) are not working at all for some reason. I used xev to figure out what the problem wa

  • Editing stills in dvc pro 1080i

    Would Motion be able to hadle editing stills in 1080i that require large amounts of zooming and panning? This would require large still images, around 5600px wide for the effects i want and to not lose quality in the image. Thanks.