PromptBase
PromptBase SelectGet Select
Close icon
General
Home
Marketplace
Create
Hire
Login
Chat
Sell
Explore

Prompt Details

Model
Chat - (gpt-6-luna)
Token size
970
Example input
[CODE]: E = 200; [WHAT IT SHOULD COMPUTE]: Tip deflection of a cantilever, δ = PL³/3EI. [INPUT VALUES]: P = 500 N, L = 2 m, E = 200 (entered from a table headed "GPa"), I = 8.3e-6 m⁴. [EXPECTED VS ACTUAL]: ≈ 0.80 mm from a hand calculation; 8.0e5, units claimed as metres. [WORKING IN]: SI
Example output
Example 1 — unit slip in a beam deflection script Input: [WHAT IT SHOULD COMPUTE] Tip deflection of a cantilever, δ = PL³/3EI. [INPUT VALUES] P = 500 N, L = 2 m, E = 200 (entered from a table headed "GPa"), I = 8.3e-6 m⁴. [EXPECTED VS ACTUAL] ≈ 0.80 mm from a hand calculation; 8.0e5, units claimed as metres. Output (abridged): PASS 1 — FINDINGS: `E = 200;` tagged (U) UNITS — E is consumed by a formula expecting pascals, so the script's beam is a billion times too flexible. PASS 3 — DIAGNOSIS: root cause is the unit slip; the 10⁹ discrepancy matches the GPa→Pa factor exactly, and the trace shows every other quantity correct. PASS 4 — `E = 200e9; % FIXED (U): was 200 (GPa value in a Pa slot)` PASS 5 — VERIFY: (a) known-answer: with these inputs the fixed code returns 8.0e-4 m; (b) sanity: doubling L must multiply δ by 8 (cubic) — run L = 4 and confirm.
GPT

Matlab 5pass Debug Protocol

Add to Cart
Instant accessInstant access
Usage rightsCommercial use
Money-back guaranteeMoney‑back
By purchasing this prompt, you agree to our terms of service
GPT-6-LUNA
Tested icon
Guide icon
4 examples icon
Free credits icon
A 5-pass MATLAB debugging protocol, not a typo hunt: scan against a 6-category error taxonomy (units, operators, indexing, dimensions, settings, logic), hand-trace your inputs, rank root causes vs symptoms, get a minimal fixed script with commented changes, plus known-answer and sanity checks with numbers your fixed code should produce. Study aid only — verify all numbers independently; never for real or safety-critical design.
...more
Added 19 hours ago
Report
Browse Marketplace