Question about Microsoft Windows XP Professional With Servise Pack 2 (e8503040) for PC

1 Answer

Calculate the value of pi

Pi=4-(4/3)+(4/5)-(4/7)+(4/9)-(4/11)+....
print a table that shows the approximate value of pi after each of first 1,000 terms in the series

Posted by on

  • Vanja Djuric
    Vanja Djuric May 11, 2010

    aaand, where is the problem? :S

×

1 Answer

  • Level 2:

    An expert who has achieved level 2 by getting 100 points

    MVP:

    An expert that gotĀ 5 achievements.

    Governor:

    An expert whose answer gotĀ voted for 20 times.

    Hot-Shot:

    An expert who has answered 20 questions.

  • Expert
  • 70 Answers

#include <iostream>

int main(int argc, char *argv[])
{
double arctangentOfOne = 0.0;
for(int i=0; i < 1000; ++i, std::cout << 4 * arctangentOfOne << std::endl) arctangentOfOne += (i%2==0?1.0:-1.0)/(2*i + 1 );
system("PAUSE");
return 0;
}

Posted on Jan 17, 2009

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

I'm trying to install microsoft picture it on my pc (windows7) but a missing pi.exe keeps on apearing,how can I fix this


Free Guides to Fix PC Errors By PcTweaker Skip to content Leave a replypi.exe is part of Microsoft Picture It! 9 and developed by Microsoft Corporation according to the pi.exe
pi.exe Vendor and Version Informaiton : Product name : Microsoft Picture It! 9 Company : Microsoft Corporation Version : Md5 : 33be8a09351e58d22e5a3f35cff5ffa6 Why does my computer have the pi.exe wrong information cue? pi.exe is a file name that often appears in some error messages on the computer, if you frequently receive the error notifications which state that the specific program cannot be processed for the pi.exe file being corrupted or missing, you should consider to fix pi.exe error well for avoiding the related operation problems on your computer.When this file gets corrupted, missing or suddenly become invalid in the Windows system, you will immediately receive the pi.exe error message and you will need repair it as soon as possbile !
If you do not fix nengine.dll missing as soon as possible, you may face the problems below:
"System boot-up failure" "System file corrupt" "Slow system performance" "Blue Screen of Death errors" "White Screen of Death errors" Why need to Fix pi.exe Errors ? When the system has the pi.exe wrong information, it shows that the error has been affecting the Windows system's running stability. If this time not clearing up the pi.exe error quickly, the Windows registry can be easily damaged, and then the unsteady Windows registry will affect the normal use of other softwares or directly make them not work,and the whole Windows system can not be used normally.So, when the Windows system has the error message, we should hurry up to repair it well.How to fix the pi.exe error ? To fix pi.exe error is not that easy before,but now it is so easy ! Please download the Pctweaker software recommended by us, according to the following procedures. You can soon clear up the pi.exe error through a few simple procedures, and in the course the software will automatically repair your computer's Windows registry damage caused in normal operation.
scan.jpg

scan.png

Jul 23, 2014 | Operating Systems

1 Answer

I'm trying to install microsoft picture it but a missing pi.exe notice keeps on apearing,how can I fix this?


What others are doing:
Try the free download
Free Guides to Fix PC Errors By PcTweaker pi.exe is part of Microsoft Picture It! 9 and developed by Microsoft Corporation according to the pi.exe pi.exe Vendor and Version Informaiton : Product name : Microsoft Picture It! 9 Company : Microsoft Corporation Version : Md5 : 33be8a09351e58d22e5a3f35cff5ffa6 Why does my computer have the pi.exe wrong information cue? pi.exe is a file name that often appears in some error messages on the computer, if you frequently receive the error notifications which state that the specific program cannot be processed for the pi.exe file being corrupted or missing, you should consider to fix pi.exe error well for avoiding the related operation problems on your computer.When this file gets corrupted, missing or suddenly become invalid in the Windows system, you will immediately receive the pi.exe error message and you will need repair it as soon as possbile !
If you do not fix nengine.dll missing as soon as possible, you may face the problems below:
"System boot-up failure" "System file corrupt" "Slow system performance" "Blue Screen of Death errors" "White Screen of Death errors" Why the need to Fix pi.exe Errors ? When the system has the pi.exe wrong information, it shows that the error has been affecting the Windows system's running stability. If this time not clearing up the pi.exe error quickly, the Windows registry can be easily damaged, and then the unsteady Windows registry will affect the normal use of other softwares or directly make them not work,and the whole Windows system can not be used normally.So, when the Windows system has the error message, we should hurry up to repair it well.How to fix the pi.exe error ? To fix pi.exe error is not that easy before,but now it is so easy ! Please download the Pctweaker software recommended by us, according to the following procedures. You can soon clear up the pi.exe error through a few simple procedures, and in the course the software will automatically repair your computer's Windows registry damage caused in normal operation.
scan.jpg

scan.png

Jul 23, 2014 | Operating Systems

1 Answer

How to multiply matrix on fx-991ES calculator?


hi..

Its very easy to do matrix operations in FX 991ES
This calculator can operate up to three Matrices at a time, namely Matrix A (Mat A), Matrix B (MAT B), Matrix C(MAT C).

  1. First to do, is set the calculator in MATRIX Mode
    Its Easy
    Press MODE button and press 6.
    Your Display will show indication of MAT on upper side of screen to show now calculator is in MATRIX Mode

  2. Now we need to Define matrices and set its dimensions.
    This product supports matrix of order up to 3x3. That is you can operate matrix of No. of rows=3 and No. of columns=3
    To input matrix, Press SHIFT and then 4. This will Pop up Menu for Matrix. Now press 1
    Your screen will show as this,
    nightflare_14.png
    MAT A will be your First Matrix and MAT B will be your Second Matrix and so on.
    Press 1 , 2 , or 3 to select Matrix A , B, or C.
    here I will Proceed with Matrix A, so I press Numerical 1 Key

  3. Next screen will ask you about the size of matrix.

    nightflare_15.png
    Press UP or DOWN Keys to view options.
    nightflare_16.png
    Press Corresponding Numerical keys to select corresponding order.

  4. On Next Screen , enter values on each positions
    nightflare_17.png
    Press UP, DOWN, LEFT, RIGHT Keys to move around in matrix and specify each element.

  5. Now we inputed Details about Matrix A. If you want to specify other matrices (MATRIX B, MATRIX C) repeat STEPS 2 To STEP 4


  6. After Specifying required Matrices, we can tell calculator to do operations with them.

    Press SHIFT and then 4 and then It will show a menu contains
    nightflare_18.png

  7. For example, i need to multiply Matrix A with Matrix B, i'll enter as

    SHIFT + 4 + 3 to Input Matrix A

    X
    to enter operator (Here multiplication, You enter + - x / for corresponding arithmetic operations )

    SHIFT + 4 + 4 to Input Matrix B

    = To show Result
    Press UP DOWN LEFT RIGHT Keys to view extra fields, if any.


Hope this will help you.

have a good time with Casio FX 991ES

Mar 26, 2011 | Operating Systems

1 Answer

When i try to install the sims 3 File: E:/Chaches/Sunset Valley.objectChache Error: Data error (cyclic redundancy check). pops up i cleaned the disc but it didnt help


If 'E:' is your CD/DVD drive, then some of the data could not be _correctly_ read from the disk.

When the data was written, a CRC value was calculated for the data, and that CRC-value was written onto the disk immediately after the data. When the data is read from the disk, the CRC-value also is read from the disk. A "new" CRC-value is calculated from the data that was read, and the "new" CRC-value is checked against the "old" CRC-value. If the two values do not match, then the data retrieved does *NOT* match the data that was written, i.e., you have an "I/O error".

Take the defective CD-ROM back to the retailer, and get it replaced, under warranty.

Nov 21, 2010 | Operating Systems

1 Answer

Why we take value of pi to find the area of circle?


hi

the formula of area of circle is pi R square

where R is radius of the circle
pi value 3.14

Jul 13, 2010 | Microsoft Windows XP Professional

1 Answer

Trying to install office 2007 but keep getting error code 1606 cannot find network location %APPDATA%. What can I do to fix this?


To resolve this issue, follow these steps:
  1. Click Start, click Run, type Regedit.exe, and then click OK.
  2. Locate and then click the following registry subkey: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
  3. In the right pane, verify that the values are the same as the values in the following table. If each value matches the table, go to step 7. For Windows XP and for Windows Server 2003, see the following table. Collapse this tableExpand this table Value name Type Value data AppData REG_EXPAND_SZ %USERPROFILE%\Application Data Cache REG_EXPAND_SZ %USERPROFILE%\Local Settings\Temporary Internet Files Cookies REG_EXPAND_SZ %USERPROFILE%\Cookies Desktop REG_EXPAND_SZ %USERPROFILE%\Desktop Favorites REG_EXPAND_SZ %USERPROFILE%\Favorites History REG_EXPAND_SZ %USERPROFILE%\Local Settings\History LocalAppData REG_EXPAND_SZ %USERPROFILE%\Local Settings\Application Data Local Settings REG_EXPAND_SZ %USERPROFILE%\Local Settings My Pictures REG_EXPAND_SZ %USERPROFILE%\My Documents\My Pictures NetHood REG_EXPAND_SZ %USERPROFILE%\NetHood Personal REG_EXPAND_SZ %USERPROFILE%\My Documents PrintHood REG_EXPAND_SZ %USERPROFILE%\PrintHood Programs REG_EXPAND_SZ %USERPROFILE%\Start Menu\Programs Recent REG_EXPAND_SZ %USERPROFILE%\Recent SendTo REG_EXPAND_SZ %USERPROFILE%\SendTo Start Menu REG_EXPAND_SZ %USERPROFILE%\Start Menu Startup REG_EXPAND_SZ %USERPROFILE%\Start Menu\programs\Startup Templates REG_EXPAND_SZ %USERPROFILE%\TemplatesFor Windows Vista, see the following table. Collapse this tableExpand this table Value name Type Value data {374DE290-123F-4565-9164-39C4925E467B} REG_EXPAND_SZ %USERPROFILE%\Downloads AppData REG_EXPAND_SZ %USERPROFILE%\AppData\Roaming Cache REG_EXPAND_SZ %USERPROFILE%\AppData\Local\Microsoft\Windows\Temporary Internet Files Cookies REG_EXPAND_SZ %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Cookies Desktop REG_EXPAND_SZ %USERPROFILE%\Desktop Favorites REG_EXPAND_SZ %USERPROFILE%\Favorites History REG_EXPAND_SZ %USERPROFILE%\AppData\Local\Microsoft\Windows\History LocalAppData REG_EXPAND_SZ %USERPROFILE%\AppData\Local My Pictures REG_EXPAND_SZ %USERPROFILE%\Pictures My Music REG_EXPAND_SZ %USERPROFILE%\Music My Video REG_EXPAND_SZ %USERPROFILE%\Videos NetHood REG_EXPAND_SZ %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Network Shortcuts Personal REG_EXPAND_SZ %USERPROFILE%\PrintHood PrintHood REG_EXPAND_SZ %USERPROFILE%\Documents Programs REG_EXPAND_SZ %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs Recent REG_EXPAND_SZ %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Recent SendTo REG_EXPAND_SZ %USERPROFILE%\AppData\Roaming\Microsoft\Windows\SendTo Start Menu REG_EXPAND_SZ %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu
    Startup REG_EXPAND_SZ %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup Templates REG_EXPAND_SZ %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Templates
  4. If any Name, Type, or Value does not match the table in step 3, right-click the Value name, and then click Delete.
  5. In the left pane, right-click User Shell Folders, point to New, click Expandable String Value, type the Name value that you want from the table in step 3, and then press ENTER.
  6. Right-click the value that you created in step 5, click Modify, type the value in the Value data box for the Value name, and then click OK.
  7. Locate and then click the following registry subkey: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
  8. In the right pane, verify that the values are the same as the values in the following table. If each value matches the table, go to step 12. Collapse this tableExpand this table Value name Type Value data Common AppData REG_EXPAND_SZ %ALLUSERSPROFILE%\Application Data Common Desktop REG_EXPAND_SZ %ALLUSERSPROFILE%\Desktop Common Documents REG_EXPAND_SZ %ALLUSERSPROFILE%\Documents Common Favorites REG_EXPAND_SZ %ALLUSERSPROFILE%\Favorites Common Programs REG_EXPAND_SZ %ALLUSERSPROFILE%\Start Menu\Programs Common Start Menu REG_EXPAND_SZ %ALLUSERSPROFILE%\Start menu Common Startup REG_EXPAND_SZ %ALLUSERSPROFILE%\Start Menu\Programs\Startup Common templates REG_EXPAND_SZ %ALLUSERSPROFILE%\Templates
  9. If any Name, Type, or Value does not match the table in step 8, right-click the Value name, and then click Delete.
  10. In the left pane, right-click User Shell Folders, point to New, click Expandable String Value, type the Name value that you want from the table in step 8, and then press ENTER.
  11. Right-click the value that you created in step 10, click Modify, type the value in the Value data box for the Value name, and then click OK.
  12. Exit Registry Editor, and then restart the computer.

Sep 04, 2009 | Microsoft Windows Vista Home Premium with...

1 Answer

Visual basic program for binary search technique


This sounds like "homework".

A binary-search requires an "ordered" table of values.
Sort your values into the proper order.

LET TOP=1; * Point to first element in the table.
LET BOT=1000; * Point to the *LAST* item in the table.

LOOPHERE:

LET BINARY = 2;

LET MIDDLE=FLOOR((TOP+BOT)/BINARY);

IF VALUE(MIDDLE) = KEY THEN STOP;

IF KEY < VALUE(MIDDLE)
THEN TOP = MIDDLE;
ELSE BOTTOM = MIDDLE;

IF TOP = BOTTOM THEN STOP;

GOTO LOOPHERE;

END;

Mar 08, 2009 | Microsoft Windows Vista Home Premium with...

1 Answer

Internet Explorer shows the - symbol and pi symbol as a square


go to the character map and find the font which have both symbols, then use that font when taking online class

Oct 31, 2008 | Microsoft Windows Vista Ultimate Edition

1 Answer

VBA Macro


Nice try! Find an upper-class student to give you one-on-one tutoring with your homework assignment.

Aug 26, 2008 | Operating Systems

Not finding what you are looking for?
Microsoft Windows XP Professional With Servise Pack 2 (e8503040) for PC Logo

Related Topics:

101 people viewed this question

Ask a Question

Usually answered in minutes!

Top Microsoft Operating Systems Experts

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

Scott Fryer

Level 2 Expert

80 Answers

Alex Krenvalk

Level 2 Expert

401 Answers

Are you a Microsoft Operating System Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...