Repository navigation
八年级数学 × 编程|操场上抄近路,到底少走了几米? #2
lmo0317
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
从操场的 A 点向东走 8 米,再向北走 6 米,就能到 B 点。如果可以从 A 直走到 B,一共少走几米?先把你的答案写下来,再打开图形。图中的实线是沿边路线,虚线是直达路线。
打开互动课件,换一条路线试试
我算出 10 米了,为什么还差一步?
8² + 6² = 100,所以 10 米是斜边的长度。沿边要走 8 + 6 = 14 米,少走的是 14 − 10 = 4 米。
上课时可以让同桌各试一条路线:一人选「东 12 米,北 5 米」,另一人选「东 12 米,北 9 米」。两人先比较直达距离,再比较少走的距离。延伸到信息科技课,可以让学生给程序中的两个量分别起名:
直达 = √(东² + 北²),少走 = 东 + 北 − 直达。把直达距离误填为答案时,课件会提醒还要做减法。给备课的老师:互动页底部有「下载 CourseForge 工程」。在官方编辑器点「📂 打开工程」选中下载的 JSON,即可放映或改题。「🚀 导出课件包」会生成一个可离线打开的 HTML。也可以直接从下方复制工程,保存为
playground-routes.cfc.json后打开。展开可编辑的 CourseForge 工程
{ "app": "CourseForge", "version": 1, "pages": [ { "id": "routepage", "title": "操场上的两条路线", "base": { "type": "html", "html": "" }, "elements": [ { "id": "routewidget", "type": "interaction", "title": "操场上的两条路线", "x": 12, "y": 8, "w": 936, "h": 510, "rot": 0, "visible": true, "autoLoad": true, "perms": { "camera": false, "microphone": false, "sameOrigin": false }, "html": "<!doctype html>\n<html lang=\"zh-CN\">\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width,initial-scale=1\">\n<title>操场上的两条路线</title>\n<style>\n*{box-sizing:border-box}body{margin:0;padding:14px 4vw;color:#173d37;background:#f7faf2;font:clamp(15px,2.4vw,23px)/1.38 system-ui,sans-serif}h1{font-size:1.35em;margin:0 0 5px}p{margin:5px 0}svg{display:block;width:min(330px,55%);height:145px}select,input,button{font:inherit;padding:4px 8px}input{width:6em}button{background:#145747;color:white;border:0;border-radius:5px}output{display:block;min-height:1.4em;font-weight:650}summary{cursor:pointer}small{color:#49645e}\n</style>\n<h1>抄近路,能少走几米?</h1>\n<p>操场上从 A 沿两条直角边走到 B。若改走对角线,会少走多少米?</p>\n<label>选择路线 <select id=\"route\"><option>东 8 米,北 6 米</option><option>东 12 米,北 5 米</option><option>东 12 米,北 9 米</option></select></label>\n<svg viewBox=\"0 0 255 145\" role=\"img\" aria-label=\"从左下角 A 走到右上角 B,绿色虚线是直达路线\"><path id=\"edge\" fill=\"#d8edc4\" stroke=\"#354c41\" stroke-width=\"3\"/><path id=\"direct\" stroke=\"#147a52\" stroke-width=\"3\" stroke-dasharray=\"6 4\"/><text x=\"8\" y=\"132\">A</text><text id=\"b\">B</text></svg>\n<form id=\"answer\"><label>少走 <input id=\"guess\" type=\"number\" min=\"0\" step=\"any\" required> 米</label> <button>核对</button></form>\n<output id=\"result\" aria-live=\"polite\"></output>\n<details id=\"steps\"><summary>看计算过程</summary><p id=\"explain\"></p></details>\n<small>韩国 ModuMath 团队制作</small>\n<script>\nconst routes=[[8,6],[12,5],[12,9]];\nconst el=id=>document.getElementById(id);\nfunction current(){return routes[el('route').selectedIndex];}\nfunction update(){\n const [east,north]=current(), diag=Math.hypot(east,north);\n const x=24+east*12, y=122-north*12;\n el('edge').setAttribute('d',`M24 122 H${x} V${y} Z`);\n el('direct').setAttribute('d',`M24 122 L${x} ${y}`);\n el('b').setAttribute('x',x+4);el('b').setAttribute('y',y+4);\n el('explain').textContent=`直达距离的平方是 ${east}² + ${north}² = ${diag*diag},所以直达距离是 ${diag} 米。沿边走 ${east+north} 米,少走 ${east+north} − ${diag} = ${east+north-diag} 米。`;\n el('steps').open=false;el('guess').value='';el('result').textContent='';\n}\nel('route').onchange=update;\nel('answer').onsubmit=e=>{\n e.preventDefault();const [a,b]=current(),d=Math.hypot(a,b),n=el('guess').valueAsNumber;\n el('result').textContent=n===a+b-d?'答对了!试试下一条路线。':n===d?'这是直达的距离,还要用沿边的路程减去它。':'再试试:先求直达距离,再比较两条路线。';\n};\nupdate();\n</script>\n</html>", "src": "" } ] } ] }由韩国 ModuMath 团队制作。另一道练习换了已知条件:长方形面积为 84 平方厘米,长比宽多 5 厘米,怎样先求出两条边?打开简体中文练习并核对解析
All reactions