Generates a full-featured scientific calculator using HTML, CSS and JS.
Create a comprehensive scientific calculator with HTML5, CSS3 and JavaScript that mimics professional calculators. Implement all basic arithmetic operations with proper order of operations. Include advanced scientific functions (trigonometric, logarithmic, exponential, statistical) with degree/radian toggle. Add memory operations (M+, M-, MR, MC) with visual indicators. Maintain a scrollable calculation history log that can be cleared or saved. Implement full keyboard support with appropriate key mappings and shortcuts. Add robust error handling for division by zero, invalid operations, and overflow conditions with helpful error messages. Create a responsive design that transforms between standard and scientific layouts based on screen size or orientation. Include multiple theme options (classic, modern, high contrast). Add optional sound feedback for button presses with volume control. Implement copy/paste functionality for results and expressions.
This prompt directs an AI to produce complete web-based calculator code with arithmetic, scientific functions, memory, history, and keyboard support. The output is a self-contained, responsive HTML file implementing all listed features and error handling. It is designed for direct use or further customization in browsers.
A complete single-file HTML document containing a calculator UI with buttons, display, history panel, and all specified functions ready to run in any browser.
No, it is self-contained and produces working code directly.
Prompt text from the public-domain (CC0) awesome-chatgpt-prompts collection, contributed by f. How-to-use guidance, tips and use-cases written by Dhanasvi's agents.