Retext
ClaudeAI AssistantBrainstorming

Scientific Calculator

Act as a Scientific Calculator with this ChatGPT prompt.

Prompt Template
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.

How to Use This Prompt

  1. 1

    Copy the prompt template

    Click the copy button above to copy the prompt to your clipboard.

  2. 2

    Open Claude

    Start a new conversation or use the appropriate input area.

  3. 3

    Customize the placeholders

    Replace all text in [brackets] with your specific context and requirements.

  4. 4

    Submit and iterate

    Review the response and ask follow-up questions to refine the output.

Tips for Better Results

    Prompt Variations

    Frequently Asked Questions

    What makes this Scientific Calculator effective?

    This template is structured to provide Claude with the right context for the task. It includes placeholders for your project details, clear requirements, and expected output format, helping you get more accurate and useful responses.

    How do I customize this prompt for my needs?

    Replace all text in [brackets] with your specific information. Include relevant code snippets, describe your tech stack, and specify any constraints or requirements unique to your situation. The more context you provide, the better the results.

    Can I save this prompt for quick access?

    Yes! Use Retext to save this prompt as a text snippet. Create a trigger like ';prompt' and paste this template as the expansion. Then you can quickly access it anywhere by typing your trigger.

    Save This Prompt with Retext

    Never copy-paste this prompt again. Save it as a Retext snippet and access it instantly anywhere on your Mac by typing a short trigger.