Calculator Programming Error

Hey Apple Programmers,
FYI - The factorial only exists for non-negative integers. However the scientific calculator on the iPod touch and iPhone the factorial function gives values for negative values and for non-integers. Sorry guys this is an error!
Now, it is true that if you integrate the gamma function (which exists for all numbers) you will get the factorial. For example gamma(N) = (N-1)! and in statistics it is useful to now that gamma(1/2) = sqrt(pi) so for HP calculators this comes in handy and -0.5! on an HP calculator will give you sqrt(pi) or gamma(1/2). This is useful if you know what is going on. The routine that APPLE uses does not give the gamma function so it IS totally useless and WRONG!
Sorry guys, got you on this one.
LeRoy

Apple does not read this forum. If you'd like to let them know use this url.
http://www.apple.com/feedback/ipodtouch.html
lenn

Similar Messages

  • U0093Critical program error occurred .u0093Client out of memory error u0093 - Query

    I have a problem with Query in BI 7.0
    Query works perfectly in BW3.5 environment.  BI 7.0 Vista and Excel 2007 environment – I have date range in the query – If I provide date range 4 months interval it is working fine.
    If I provide 5, 6,7, months interval – I am getting the error ,
    “Critical program error occurred .The program has to close. Please refer to the trace for further information.”
    Communication error, CPIC return code 020, SAP returns code 223
    “Client out of memory error “
    When I execute each interval this query and calculated the no of records – it is only less than 19,000 records.
    The same query working fine in Bw3.5  for more than year interval.
    Advance Thanks .

    It depends on the ssytem settings. The problem with your query is that it is not able to fetch all the data due to lack of memory. However, when you are giving smaller range, you are getting the output. You can either ask the basis guy to increase the memory space or try running the query by giving smaller date range. You can have some filters on your query also.
    Thanks...
    Shambhu

  • I need help in a calculator program

    hi
    I'm writing a calculator program and i keep having this error in the actionPerformed method:
    this is the error :
    symbol : method parseInt (int)
    location: class java.lang.Integer
         tf.setText( Integer.parseInt(result));
    ^
    1 error
    here's the actionPerformed method :
    public void actionPerformed(ActionEvent e) {
    int num1, num2, result;
    char c = e.getActionCommand().charAt(0);
    switch(c)
    case '0': //theses are keys 0 to 9 on the calculator
    case '1':
    case '2':
    case '3':
    case '4':
    case '5':
    case '6':
    case '7':
    case '8':
    case '9':
    case '.':
    tf.setText(tf.getText( ) + c); //concatenation of the numbers
    break;
    case 'C': //this is the clear button
    tf.setText("");
    break;
    switch (c)
    case '+': //if the key + is presses
    num1= Integer.parseInt(tf.getText()); //stores the 1st number in the num1 variable
    tf.setText("");//clears the display
    num2=Integer.parseInt(tf.getText()); //stores the 2nd number in num2 variable
    result= (num1 + num2) ;//adds num1+num2
    break;
    case 'x': //theses are the other operations that i haven't done yet
    case '-':
    case '/':
    tf.setText("");
    case '=':
    tf.setText( Integer.parseInt(result));//this is where the error is

    Or rather "tf.setText( String.valueOf(result));".
    You should not be parsing an integer value from its string representation but the opposite: trying to get a string from an integer value.

  • Could u guys help me with a calculator program

    hi
    i'm writing a calculator program for my java class and the code ur about to read actually works but when i click on the keypad i don't get any numbers in the display screen, the textfield
    Could u guys have a look at it please:
    here we go
    import javax.swing.* ;
    import java.awt.* ;
    import java.awt.event.* ;
    public class Calculator extends JFrame implements ActionListener {
    public boolean firstDigit;
    public int temp1 = 0;
    public int temp = 0;
    public int result = 0;
    public String opr = "";
    JTextField tf= new JTextField ("",20) ;           //sets the display initially at 0
    //tf.setEditable (false) ; this doesn't work
    JPanel pan = new JPanel() ;
    JButton bclear= new JButton("C") ;
    JButton b0= new JButton("0") ;
    JButton badd = new JButton("+") ;
    JButton bsub = new JButton("-") ;
    JButton bmult = new JButton("x");
    JButton bdiv = new JButton("/") ;
    JButton bpoint= new JButton(".");
    JButton bequal = new JButton("=");
    public Calculator (String title) // constructor
    super(title)     ;     
    pan.add(tf);
    for ( int i=1; i<=3; i++)
    JButton butt=new JButton(""+i);
    butt.addActionListener(this);
    pan.add(butt);                }
    badd.addActionListener(this);
    pan.add(badd);
    for ( int i=4; i<=6; i++)
    JButton butt=new JButton(""+i);
    butt.addActionListener(this);
    pan.add(butt);
    bsub.addActionListener(this);
    pan.add(bsub);
    for ( int i=7; i<=9; i++)
    JButton butt=new JButton(""+i);
    butt.addActionListener(this);
    pan.add(butt);
    bmult.addActionListener(this);
    pan.add(bmult);
    bclear.addActionListener(this);
    pan.add(bclear);
    b0.addActionListener(this);
    pan.add(b0);
    bpoint.addActionListener(this);
    pan.add(bpoint);
    bequal.addActionListener(this);
    pan.add(bequal);
    bdiv.addActionListener(this);
    pan.add(bdiv);
    //pan.add(new Button(""));
    setContentPane(pan) ;
    public boolean action(Event e, Object o)
    //checks for operator keys
    if (e.target == badd)
    temp1 = temp;     //to "save" for calculation
    opr = "+";
    else if (e.target == bsub)
    temp1 = temp;
    opr = "-";
    else if (e.target == bmult)
    temp1 = temp;     
    opr = "*";
    else if (e.target == bdiv)
    temp1 = temp;
    opr = "/";
    else if (e.target == bequal)
    result = calculate(temp1,opr,temp);
    tf.setText(Integer.toString(result)); //does the calculation
    temp= result; //to be able to do an operation on the result
    else if (e.target == bclear)
    tf.setText("");
    temp1 = 0; //resets the temps and display to 0
    temp = 0;
    else
    //numeric buttons
    if (firstDigit)
    tf.setText( o.toString() );
    firstDigit = false;
    temp = Integer.parseInt(tf.getText()); //saves the number in a temp
    else
    tf.setText(tf.getText() + o.toString()); //for numbers longer than 1 digit
    temp = Integer.parseInt(tf.getText());
    return true;
    firstDigit = true; // GET READY FOR NEXT NUMBER
    return true;
    public int calculate(int num1,String op, int num2 )
    // calculate the numbers
    int answers = 0;
    if (op == "+")
    answers = num1 + num2; //does the calculation for +
    else if(op == "-")
    answers = num1 - num2; //does the calculation for -
    else if(op == "/")
    if(num2 == 0)
    tf.setText("ERROR");//gives error message if dividing by 0
    else     
    answers = num1 / num2;
    else if(op == "*")
    answers = num1 * num2; //does the calculation for *
    return answers;
    public void actionPerformed(ActionEvent e) {
    Object source = e.getSource() ;
    public static void main(String[] args)     {
    try {
    UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName() );
    catch (Exception e) {
    System.err.println("impossible to use system setting : " + e ); }
    Calculator fen = new Calculator("CALCULATOR");
    fen.setSize(235, 300);
    fen.setVisible(true);
    fen.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

    I Hope this would help you.
    http://www.planet-source-code.com/vb/scripts/ShowCode.asp?lngWId=2&txtCodeId=2275
    Thanks,
    Vikas Karwal
    [email protected]

  • Error:  "Could not complete your request because of a program error" (photoshop CS2 9.0.2 on MAC OSX

    Today I started my program (photoshop CS2 9.0.2) and opened a JPG file. When I went to print the file the program crashed and closed. When I restarted the program and went to open the file I got this error message, "Could not complete your request because of a program error".
    I have tried several different file types/sizes and all result in the same error message since the program crashed. It will not open any file I try to open. As I indicated above I am using Photoshop CS2 9.0.2 it is on a MAC with OSX 10.4.11.
    I called Adobe and the Rep directed me to Tech Note 331307 and told me to Re-create the Photoshop preferences files. Which I did and restarted the program, but when I tried to open a file (any file) I still get the same error message so it doesn't appear to be the preferences.
    Does anyone have any info as to what the problem may be and how to correct it.
    Thanks

    Thanks for the response. OK... This is the first day I have been able to get back to the problem.
    My system I am running Photoshop on is a Power Mac G4, AGP Graphics ATY Rage 128Pro chip set 16MB VRAM LCD 1280x1024 32-bit color, 500MHz, 1.75GB of memory, 1 MB L2 Cache, 100 MHz Bus Speed. I had installed the latest security update and repaired the permissions the day the problem started.
    Now to day I started the system and went in and created a Guest Account. I logged into the guest account and started Photoshop. Low and behold it worked just fine. So I logged out of guest and logged into my main user account And started Photoshop. Wouldn't you know it.... It works just fine. I can open any file I want with now problems.
    I got to thinking after I had done all of this that I wished I had tried to open a file in Photoshop today prior to creating the guest account to see if it still had the problem in my main user account.
    I did not change anything else on the system and all seems to work fine now. So at his point I am really not sure what the problem was.
    Again thanks for taking the time to respond to this issue.

  • Photoshop CS2 (program error msg)... Help please!!

    I have installed the full creative suite 2 on my new iMac. everything works fine except photoshop?!!?
    Illustrator works great, In-Design works great, But when i try to open a file or create a new page in PS it tells me "Could not create document because of a program error"???? ***?
    I had a previous version of CS and it worked fine for one day, then that started happening. I installed the CS2 trial version, and it would still give me the same error msg. I erased everything and installed the new CS2 (photoshop, illustrator , in-design and acrobat). It still gives me the same darn msg.???
    Any help would be greatly appreciated!
    thanks

    See the Adobe Knowledge Base document"Error 'Could not complete your request...' or 'Could not create a new document...' (Photoshop CS2 on Mac OS X v10.4)"
    I suggest whenever you have problems with third-party applications, the first place to start troubleshooting is with the application's documentation, then vendor's web site. Usually their sites have FAQs, lists of known bugs, or application-specific forums similar to these Discussions. Sometimes, unlike the Apple Discussions, the questions are even answered by employees of the vendor.
    The document cited above was found in 10 seconds by searching the Adobe support site.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • PhotoShop CS2 "Program Error" when printing

    I am posting this to the Adobe Forums as well, but thought someone here might have some ideas. am having an intermittent problem printing from PhotoShop CS2 to an Epson 9800. When printing large files (200 MB average) to the Epson, PhotoShop will spool the job, taking about 50% longer than normal, and when complete, displays the following message..."The file XXXX.tif could not be printed because of a program error" No job ever gets to the print que. This happens about 80% of the time when printing. Quitting and restarting PhotoShop generally fixes the problem, and the file can be printed from another computer without issue, so this is not file specific. I have 8GB of RAM installed and PhotoShop running under 100% available memory, cache level at 8, with a dedicated 180GB scratch disk. Memory should NOT be the problem, though I do often have the full layered version of the file open in the background (I am printing from a flattened copy. I have observed that the problem is less likely to occur if no other files are open. I have a second G5 with the exact same software setup (OS, Print Driver and PhotoShop down to the decimal version #) that works perfectly every time. I have run all of the System utilities (Repair Permissions, FSCK, etc), reset the OSX printing system, reset PS preferences, trashed and re installed CS, as well as the Epson printer driver, all with no success. Any other trouble shooting ideas would be greatly appreciated. I would love to avoid a System reinstall.

    See the Adobe Knowledge Base document"Error 'Could not complete your request...' or 'Could not create a new document...' (Photoshop CS2 on Mac OS X v10.4)"
    I suggest whenever you have problems with third-party applications, the first place to start troubleshooting is with the application's documentation, then vendor's web site. Usually their sites have FAQs, lists of known bugs, or application-specific forums similar to these Discussions. Sometimes, unlike the Apple Discussions, the questions are even answered by employees of the vendor.
    The document cited above was found in 10 seconds by searching the Adobe support site.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • ESYU: ENCOIN: ECO Open Interface Program 사용시 error 발생 문제

    Purpose
    Oracle Engineering - Version: 11.5.6
    ECOs import를 위해 ECO Open Interface(ENCOIN module)을 사용할 때,
    Interface program이 아래와 같은 error를 발생시킨다.
    "ORACLE error 6550 in FDPSTP
    Cause: FDPSTP failed due to ORA-06550: line 1, column 7:
    PLS-00201: identifier 'ENG_LAUNCH_ECO_OI_PK.ENG_LAUNCH_IMPORT' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored"
    어떻게 ENCOIN: ECO Open Interface program을 사용해야 하는지 알아본다.
    Solution
    ECOs를 importing 하기 위해 ECO open interface를 사용하는 것은 권장하지도 않고,
    support 되지도 않는다.
    ECO data를 load 하기 위해 ECO open interface를 사용하는 대신 ECO Business Object
    이나 ECO form을 사용해야 한다.
    ECO Business Object 사용에 대한 보다 상세한 내용은 Manufacturing and Open Interfaces
    Manual을 참조한다.
    또한 Note 132874.1에 설명되어져 있는 ECOBOI module을 이용하도록 한다.
    만일 당신의 application version이 11.5.9 이상이라면 ENCOIN module(ECO Open Interface)는
    ECO details를 import 하기 위해 사용될 수 있고, ENCOIN은 11.5.9 이상의 version에서만
    지원이 된다.
    Reference
    Note 392011.1

  • "Program Error"  While trying to print in PSE 9

    Download and installed updates to PSE 9.0, Now 9.03. While in PSE mode I can no longer print images to Epson Photo R2880 or HP J4680. I can print to both printers using HP Media Smart Photo application, but if I attempt to print from PS Elements I get the following "could not print (image title) because of program error". I have since uninstalled the upgrade to PSE 9.03, I have also  done a system restore all to no avail. I still can't print while in PSE. Any experience with this? Any resolution ? Help !!!

    Please post Photoshop Elements related queries over at
    http://forums.adobe.com/community/photoshop_elements

  • Photoshop CS2 not working after 10.6.7 update? program error!

    Could not complete your request because of a program error. I opened an image RGB and wanted to save it as a CMYK.
    Save as and entered new name... thats it! Then the error popped up. The only thing that has changed is the update!
    Please help.

    If you updated to 10.6.7 then you should (go to your Apple menu at the far left and) check for updates.
    There was a problem with some types of Fonts that has been fixed by the Snow Leopard Font update:
    http://support.apple.com/kb/DL1377
    However, always wait after an OS update (true of Windows too) and see if it causes any problems with 3rd-party software, etc. - PRIOR to updating your system   And always, always have a full, known-good backup before you update. Especially for any computer that is used for business purposes !
    Last but definitely not least, you should know that Adobe CS2 is a Power-PC only application (circa G4 and G5 processors, before Apple moved to Intel processors), and requires Rosetta (PowerPC emulation).
    So you should consider any CS2 application running at all, as fairly miraculous.
    CS3 was released four years ago, and provided the first Intel-native ("Universal Binary") versions of the CS-suite applications.
    Mac OS 10.6 only runs on Intel-based Macs (ie: Intel processor required).
    If you are using Photoshop CS2 for any revenue-generating purposes, then it is (and was) incumbent upon you to properly allocate and budget for
    upgrades and you should - nay, must - be running a more current version of the software. If your budget does not allow for newer Adobe CS, then you should have kept a legacy system that can run an older Mac OS, and understand that your workflow is living on borrowed time - and you had best keep several old Macs that can still run an older Mac OS and run your CS2 natively.
    In no way shape or form is CS2 supported under Mac OS X 10.6 - certainly not in any official way by Adobe !
    You could also be irate about not being able to use your 8-track tape player in your brand new car. I'm exaggerating but not too much.
    Please read Adobe's response regarding CS3 (not CS2) and 10.6/Snow Leopard:
    http://blogs.adobe.com/jnack/2009/08/adobe_snow_leopard_faq.html
    With all of this in mind, you should know that your frustrations with Apple and the unsupported and not-recommended interaction of CS2 and 10.6 are misguided. Best of luck to you !

  • "Program error" When I click on the timeline/motion controls or try to export/save as my animation. PS CC late 2014

    I have been working on an animation for an online ad. The file is 300 by 250. It's about 24 seconds long. I had completed and saved my work as a GIF file. I also saved some static JPGs of the animation. Everything was still working at this point. Then I closed Photoshop and reopened the PSD file to export it to a different format, but when I clicked on the time-marker in the timeline window or tried to edit my animation, I got this error message: "could not complete your request because of a program error." Watch the following video to see exactly what happens:
    I'm running Adobe Photoshop CC November 2014. I'm working on a PSD file, 24 seconds long, 30 fps.
    I looked in my library/preferances/adobe folder for photoshop's error log file. This is the error in that file:
    2014:11:12 18:30:17 : /Volumes/workarea/PS_15_Mac_Daily_Retail/20140730.r.148/photoshop/main/photoshop/sources/ ULinkManager.cpp : 1380 : REQUIRE failed
    Thank you so much for reading this. It sucks to work so long on an ad and then have this happen for seemingly no reason. Please help if you can.

    Looks like issues with some linked smart objects... You could try and copy/ move the whole shebang to another location in the hopes that it either fixes the issue or PS completely forgets the linked files completely so you might relink/ replace them.
    Mylenium

  • Using Adobe Photoshop CS2 version 9 and have updated it, but when stacking photos, it comes up with PSD, whereas I want Jpeg, and I change the format to Jpeg and the box then comes up with cannot save as there is a program error. Be very grateful for help

    Using Adobe Photoshop CS2 version 9 and have updated it, but when stacking photos, it comes up with PSD, whereas I want Jpeg, and I change the format to Jpeg and the box then comes up with cannot save as there is a program error. Be very grateful for help with this, please.

    jpg does not support Layers.
    Just to make sure, what exactly do you mean by "stacking photos" and what do you want to achieve thereby?

  • I keep getting a message saying "Could not complete your request because of a program error"

    I keep getting a message saying ( Could not complete your request because of a program error??
    Does anyone know what this means or how to fix?

    blucoast,
    Can you please be more detailed? When are you getting this - what is causing it? Any specific tool or while starting Photoshop itself?
    Do you see an error number or error code or a report? Can you post that here?

  • Effects not working? "Could not complete your request because of a program error?"

    Hey guys&gals - I have always had this problem when working in RGB/CYMK modes - can anyone help me with that?
    More more importantly, now I am getting in in Grayscale mode as of this morning.
    I run Photoshop 6 V 13.1.2 x64 and just updated it this AM.
    Effects are crucial for my job, so I need this fixed asap!!
    I have tried the ctrl, alt, shift start up to no avail. Restarted, shutdown my PC as well.
    Please advise!
    Thanks,
    blaqgranitelaser

    Found the places I was supposed to - now what? Photoshop isn't crashing... doesn't give me any info other than a box saying "Could not complete your request because of a program error." And I have no choice but to click OK. This only happens when I try to use the layer effects in any color mode. Originally it was only in RGB/CMYK but now also happens in Grayscale.
    I'm not technologically savvy - I know what programs I use, but that is all.

  • Can't open file: "Could not complete your request because of a program error"

    I have a Photoshop file that suddenly won't open.  Last week I upgraded to CS5--the file had been created in CS3 prior to that.  When I try to open it, I receive this error message (in CS5): "Could not complete your request because of a program error."  I tried to open the same file in CS3; there, the file opens, but as soon as I try to do anything I get the same error message....which, annoyingly, re-appears the second I click "OK," so the only thing I can do in CS3 is force-quit.
    I've used Time Machine to retrieve versions of the file that were saved four days ago, seven days, and several weeks ago, and I get the same message every time.  Even on versions that were last saved with CS3 (before I installed CS5).
    Naturally, this is one of the most important files in my life right now....it's a 300 MB file that contains hundreds of layers and dozens of comps.  So the fact that I suddenly can't open it, after shelling out $1200 to upgrade to the latest and greatest Adobe has to offer, is, to say the least, distressing.
    Any advice will be appreciated.
    Thanks,
    TheWocky

    First thing I would do is investigate hard drive issues and the health of the OS.

Maybe you are looking for