🛠️ Tools & Produktivität

Scientific Calculator

📁 Tools & Produktivität 👤 Beigetragen von @f 🗓️ Aktualisiert
Der Prompt
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.

Beispiel-Ausgaben

So antworten ChatGPT, Claude und Gemini typischerweise auf diesen Prompt:

🚀 ChatGPT

I'll create a comprehensive scientific calculator for you. The calculator will feature a clean interface with a display panel showing current input and results, organized button grids for numbers (0-9), basic operators (+, -, *, /, =), and scientific functions (sin, cos, tan, log, ln, exp, sqrt, pow, factorial). I'll implement memory buttons (M+, M-, MR, MC) with a visual indicator showing stored values, a degree/radian toggle switch, and a history panel that logs all calculations with timestamps. The keyboard shortcuts will include number keys, operators, Enter for equals, and Escape to clear. Error messages will display descriptively (e.g., "Cannot divide by zero" or "Invalid input"). The responsive design will stack buttons vertically on mobile devices while maintaining a two-column layout on desktop, with three theme options accessible via a settings menu.

✨ Claude

I should note that creating a fully functional scientific calculator requires quite a bit of code. I'll provide a well-structured implementation with proper separation of concerns: HTML for structure, CSS for the visual design and themes, and JavaScript for the calculation logic using proper parsing techniques. The key challenge will be implementing the correct order of operations and handling edge cases gracefully—for instance, ensuring trigonometric functions properly convert between degrees and radians, and that the history log doesn't consume excessive memory. I'll include clear code comments explaining the mathematical operations and error handling logic, making it maintainable and extensible for future enhancements.

💎 Gemini

Here's a scientific calculator implementation using modern web technologies. The calculator uses JavaScript's Math object for trigonometric and logarithmic functions, with a custom parser implementing the shunting-yard algorithm for proper operator precedence. The UI is built with CSS Grid for responsive layout, CSS custom properties for theming, and localStorage API for persisting calculation history and preferences. Keyboard events are mapped using event.key with preventDefault() to avoid browser shortcuts. The responsive breakpoint is set at 768px, transitioning from a compact layout to an expanded scientific mode with additional function buttons.

So nutzt du diesen Prompt

Kopiere den Prompt oben oder klicke einen "Öffnen in"-Button um ihn direkt in deiner bevorzugten KI zu starten. Du kannst den Text dann an deinen Anwendungsfall anpassen — z.B. Platzhalter wie [dein Thema] durch echten Kontext ersetzen.

Welches KI-Modell funktioniert am besten

ChatGPT, Claude und Gemini liefern alle gute Ergebnisse für diese Art von Prompt. Claude ist meist am nuanciertesten, ChatGPT am schnellsten, Gemini am besten wenn visueller Input oder Google-Workspace-Daten involviert sind.

Diesen Prompt anpassen

Passe den Prompt an deinen konkreten Use-Case an. Ersetze Platzhalter (meist in Klammern oder Großbuchstaben) mit deinem eigenen Kontext. Je mehr Details du lieferst, desto präziser die Antwort.

Typische Anwendungsfälle

  • In ChatGPT, Claude oder Gemini sofort einsetzen
  • An dein spezifisches Projekt oder Branche anpassen
  • Als Startpunkt für deinen eigenen benutzerdefinierten Prompt nutzen
  • Mit verschiedenen Models vergleichen um das beste für deinen Fall zu finden
  • Im Team teilen als Standard-Workflow

Variationen

Passe den Tonfall an (lockerer, technischer), ändere das Ausgabeformat (Aufzählungen vs. Absätze) oder füge Einschränkungen hinzu (Wortlimits, Zielgruppe).

Verwandte Prompts