{"id":370,"date":"2026-12-03T17:01:03","date_gmt":"2026-12-03T15:01:03","guid":{"rendered":"https:\/\/mde.biologia.gr\/?p=370"},"modified":"2026-12-03T17:01:06","modified_gmt":"2026-12-03T15:01:06","slug":"370","status":"publish","type":"post","link":"https:\/\/mde.biologia.gr\/?p=370","title":{"rendered":""},"content":{"rendered":"\n<!DOCTYPE html>\n<html lang=\"el\">\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>\u039d\u03cc\u03bc\u03bf\u03c2 \u03c4\u03bf\u03c5 \u03a7\u03bf\u03c5\u03ba &#8211; \u0394\u03b9\u03b1\u03b4\u03c1\u03b1\u03c3\u03c4\u03b9\u03ba\u03ae \u03a0\u03c1\u03bf\u03c3\u03bf\u03bc\u03bf\u03af\u03c9\u03c3\u03b7 \u03a6\u03c5\u03c3\u03b9\u03ba\u03ae\u03c2<\/title>\n    <!-- \u03a6\u03cc\u03c1\u03c4\u03c9\u03c3\u03b7 Tailwind CSS -->\n    <script src=\"https:\/\/cdn.tailwindcss.com\"><\/script>\n    <!-- \u03a6\u03cc\u03c1\u03c4\u03c9\u03c3\u03b7 \u03b3\u03c1\u03b1\u03bc\u03bc\u03b1\u03c4\u03bf\u03c3\u03b5\u03b9\u03c1\u03ac\u03c2 Inter -->\n    <link href=\"https:\/\/fonts.googleapis.com\/css2?family=Inter:wght@400;500;600;700&#038;display=swap\" rel=\"stylesheet\">\n    <style>\n        body {\n            font-family: 'Inter', sans-serif;\n        }\n        \/* \u03a0\u03c1\u03bf\u03c3\u03b1\u03c1\u03bc\u03bf\u03c3\u03bc\u03ad\u03bd\u03bf \u03c3\u03c4\u03c5\u03bb \u03b3\u03b9\u03b1 \u03c4\u03bf\u03c5\u03c2 \u03bf\u03bb\u03b9\u03c3\u03b8\u03b7\u03c4\u03ad\u03c2 (sliders) *\/\n        input[type=\"range\"] {\n            accent-color: #2563eb;\n            cursor: pointer;\n        }\n        canvas {\n            touch-action: none;\n            user-select: none;\n        }\n    <\/style>\n<\/head>\n<body class=\"bg-slate-50 text-slate-800 min-h-screen flex flex-col\">\n\n    <!-- \u039a\u03b5\u03c6\u03b1\u03bb\u03af\u03b4\u03b1 \u0395\u03c6\u03b1\u03c1\u03bc\u03bf\u03b3\u03ae\u03c2 -->\n    <header class=\"bg-white border-b border-slate-200 sticky top-0 z-10 shadow-sm\">\n        <div class=\"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-3 flex flex-wrap items-center justify-between gap-3\">\n            <div class=\"flex items-center gap-3\">\n                <div class=\"w-10 h-10 rounded-xl bg-blue-600 text-white flex items-center justify-center font-bold text-lg shadow-sm\">\n                    F\n                <\/div>\n                <div>\n                    <h1 class=\"text-lg sm:text-xl font-bold text-slate-900 leading-tight\">\u039d\u03cc\u03bc\u03bf\u03c2 \u03c4\u03bf\u03c5 \u03a7\u03bf\u03c5\u03ba (Hooke&#8217;s Law)<\/h1>\n                    <p class=\"text-xs sm:text-sm text-slate-500\">\u0395\u03b9\u03ba\u03bf\u03bd\u03b9\u03ba\u03cc \u0395\u03c1\u03b3\u03b1\u03c3\u03c4\u03ae\u03c1\u03b9\u03bf \u03a6\u03c5\u03c3\u03b9\u03ba\u03ae\u03c2 \u2022 \u0395\u03bb\u03b1\u03c3\u03c4\u03b9\u03ba\u03ae \u03a0\u03b1\u03c1\u03b1\u03bc\u03cc\u03c1\u03c6\u03c9\u03c3\u03b7 &amp; \u03a4\u03b1\u03bb\u03ac\u03bd\u03c4\u03c9\u03c3\u03b7<\/p>\n                <\/div>\n            <\/div>\n            \n            <!-- \u0395\u03bd\u03b4\u03b5\u03b9\u03ba\u03c4\u03b9\u03ba\u03cc\u03c2 \u03a4\u03cd\u03c0\u03bf\u03c2 -->\n            <div class=\"flex items-center gap-2 bg-blue-50 border border-blue-200 px-4 py-1.5 rounded-xl\">\n                <span class=\"text-sm font-medium text-blue-800\">\u03a4\u03cd\u03c0\u03bf\u03c2:<\/span>\n                <span class=\"text-base sm:text-lg font-bold text-blue-900 tracking-wide\">F = k \u00b7 \u0394x<\/span>\n            <\/div>\n        <\/div>\n    <\/header>\n\n    <!-- \u039a\u03cd\u03c1\u03b9\u03bf \u03a0\u03b5\u03c1\u03b9\u03b5\u03c7\u03cc\u03bc\u03b5\u03bd\u03bf -->\n    <main class=\"flex-1 max-w-7xl w-full mx-auto px-4 sm:px-6 lg:px-8 py-6\">\n        <div class=\"grid grid-cols-1 lg:grid-cols-12 gap-6 items-start\">\n            \n            <!-- \u0391\u03c1\u03b9\u03c3\u03c4\u03b5\u03c1\u03ae \u03a3\u03c4\u03ae\u03bb\u03b7: \u039a\u03b1\u03bc\u03b2\u03ac\u03c2 \u03a0\u03c1\u03bf\u03c3\u03bf\u03bc\u03bf\u03af\u03c9\u03c3\u03b7\u03c2 (7 \u03c3\u03c4\u03ae\u03bb\u03b5\u03c2 \u03c3\u03b5 \u03bc\u03b5\u03b3\u03ac\u03bb\u03b5\u03c2 \u03bf\u03b8\u03cc\u03bd\u03b5\u03c2) -->\n            <section class=\"lg:col-span-6 xl:col-span-7 bg-white rounded-2xl border border-slate-200 shadow-sm overflow-hidden flex flex-col\">\n                <div class=\"px-5 py-3.5 border-b border-slate-100 flex items-center justify-between bg-slate-50\/60\">\n                    <h2 class=\"font-semibold text-slate-800 flex items-center gap-2\">\n                        <span class=\"w-2.5 h-2.5 rounded-full bg-emerald-500\"><\/span>\n                        \u03a0\u03b5\u03b9\u03c1\u03b1\u03bc\u03b1\u03c4\u03b9\u03ba\u03ae \u0394\u03b9\u03ac\u03c4\u03b1\u03be\u03b7\n                    <\/h2>\n                    <span class=\"text-xs text-slate-500 bg-white px-2.5 py-1 rounded-lg border border-slate-200\">\n                        \u03a3\u03cd\u03c1\u03b5\u03c4\u03b5 \u03c4\u03bf \u03b2\u03b1\u03c1\u03af\u03b4\u03b9 \u03b3\u03b9\u03b1 \u03b4\u03bf\u03ba\u03b9\u03bc\u03ae\n                    <\/span>\n                <\/div>\n                \n                <!-- \u03a0\u03b5\u03c1\u03b9\u03bf\u03c7\u03ae \u039a\u03b1\u03bc\u03b2\u03ac \u03a0\u03c1\u03bf\u03c3\u03bf\u03bc\u03bf\u03af\u03c9\u03c3\u03b7\u03c2 -->\n                <div id=\"simContainer\" class=\"relative w-full h-[460px] sm:h-[540px] bg-gradient-to-b from-slate-50 to-white\">\n                    <canvas id=\"simCanvas\" class=\"w-full h-full block cursor-grab active:cursor-grabbing\"><\/canvas>\n                <\/div>\n\n                <!-- \u03a5\u03c0\u03cc\u03bc\u03bd\u03b7\u03bc\u03b1 \u0394\u03b9\u03b1\u03bd\u03c5\u03c3\u03bc\u03ac\u03c4\u03c9\u03bd -->\n                <div class=\"px-5 py-3 bg-slate-50 border-t border-slate-100 flex flex-wrap items-center justify-center gap-4 sm:gap-6 text-xs sm:text-sm\">\n                    <div class=\"flex items-center gap-2\">\n                        <span class=\"w-4 h-1.5 bg-rose-600 rounded-full inline-block\"><\/span>\n                        <span class=\"text-slate-700 font-medium\">\u0392\u03ac\u03c1\u03bf\u03c2 \/ \u0395\u03c6\u03b1\u03c1\u03bc\u03bf\u03b6\u03cc\u03bc\u03b5\u03bd\u03b7 \u0394\u03cd\u03bd\u03b1\u03bc\u03b7 (F)<\/span>\n                    <\/div>\n                    <div class=\"flex items-center gap-2\">\n                        <span class=\"w-4 h-1.5 bg-emerald-600 rounded-full inline-block\"><\/span>\n                        <span class=\"text-slate-700 font-medium\">\u0394\u03cd\u03bd\u03b1\u03bc\u03b7 \u0395\u03c0\u03b1\u03bd\u03b1\u03c6\u03bf\u03c1\u03ac\u03c2 \u0395\u03bb\u03b1\u03c4\u03b7\u03c1\u03af\u03bf\u03c5 (F<sub>\u03b5\u03bb<\/sub>)<\/span>\n                    <\/div>\n                    <div class=\"flex items-center gap-2\">\n                        <span class=\"w-4 h-0.5 border-t-2 border-dashed border-blue-500 inline-block\"><\/span>\n                        <span class=\"text-slate-700 font-medium\">\u03a6\u03c5\u03c3\u03b9\u03ba\u03cc \u039c\u03ae\u03ba\u03bf\u03c2 (x = 0)<\/span>\n                    <\/div>\n                <\/div>\n            <\/section>\n\n            <!-- \u0394\u03b5\u03be\u03b9\u03ac \u03a3\u03c4\u03ae\u03bb\u03b7: \u0388\u03bb\u03b5\u03b3\u03c7\u03bf\u03b9, \u039c\u03b5\u03c4\u03c1\u03ae\u03c3\u03b5\u03b9\u03c2 & \u0393\u03c1\u03ac\u03c6\u03b7\u03bc\u03b1 (5 \u03c3\u03c4\u03ae\u03bb\u03b5\u03c2) -->\n            <section class=\"lg:col-span-6 xl:col-span-5 flex flex-col gap-6\">\n                \n                <!-- \u039a\u03ac\u03c1\u03c4\u03b1 \u0395\u03bb\u03ad\u03b3\u03c7\u03bf\u03c5 \u03a0\u03b1\u03c1\u03b1\u03bc\u03ad\u03c4\u03c1\u03c9\u03bd -->\n                <div class=\"bg-white rounded-2xl border border-slate-200 shadow-sm p-5 space-y-5\">\n                    <div class=\"flex items-center justify-between\">\n                        <h2 class=\"font-semibold text-slate-800\">\u03a0\u03b1\u03c1\u03ac\u03bc\u03b5\u03c4\u03c1\u03bf\u03b9 \u03a0\u03b5\u03b9\u03c1\u03ac\u03bc\u03b1\u03c4\u03bf\u03c2<\/h2>\n                        <button id=\"resetBtn\" class=\"px-3.5 py-1.5 text-xs sm:text-sm font-medium text-slate-700 bg-slate-100 hover:bg-slate-200 active:bg-slate-300 rounded-xl transition-colors flex items-center gap-1.5\">\n                            <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"h-4 w-4\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n                                <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15\" \/>\n                            <\/svg>\n                            \u0395\u03c0\u03b1\u03bd\u03b1\u03c6\u03bf\u03c1\u03ac\n                        <\/button>\n                    <\/div>\n\n                    <!-- \u03a1\u03c5\u03b8\u03bc\u03b9\u03c3\u03c4\u03ae\u03c2 \u03a3\u03c4\u03b1\u03b8\u03b5\u03c1\u03ac\u03c2 \u0395\u03bb\u03b1\u03c4\u03b7\u03c1\u03af\u03bf\u03c5 (k) -->\n                    <div class=\"space-y-2\">\n                        <div class=\"flex justify-between items-center text-sm\">\n                            <label for=\"kSlider\" class=\"font-medium text-slate-700\">\u03a3\u03c4\u03b1\u03b8\u03b5\u03c1\u03ac \u03b5\u03bb\u03b1\u03c4\u03b7\u03c1\u03af\u03bf\u03c5 (k)<\/label>\n                            <span id=\"kValue\" class=\"font-bold text-blue-600 bg-blue-50 px-2.5 py-0.5 rounded-lg\">100 N\/m<\/span>\n                        <\/div>\n                        <input id=\"kSlider\" type=\"range\" min=\"20\" max=\"200\" step=\"5\" value=\"100\" class=\"w-full h-2 bg-slate-200 rounded-lg appearance-none\">\n                        <div class=\"flex justify-between text-xs text-slate-400\">\n                            <span>20 N\/m (\u039c\u03b1\u03bb\u03b1\u03ba\u03cc)<\/span>\n                            <span>200 N\/m (\u03a3\u03ba\u03bb\u03b7\u03c1\u03cc)<\/span>\n                        <\/div>\n                    <\/div>\n\n                    <!-- \u03a1\u03c5\u03b8\u03bc\u03b9\u03c3\u03c4\u03ae\u03c2 \u039c\u03ac\u03b6\u03b1\u03c2 (m) -->\n                    <div class=\"space-y-2\">\n                        <div class=\"flex justify-between items-center text-sm\">\n                            <label for=\"mSlider\" class=\"font-medium text-slate-700\">\u039c\u03ac\u03b6\u03b1 \u03c3\u03ce\u03bc\u03b1\u03c4\u03bf\u03c2 (m)<\/label>\n                            <span id=\"mValue\" class=\"font-bold text-indigo-600 bg-indigo-50 px-2.5 py-0.5 rounded-lg\">2.0 kg<\/span>\n                        <\/div>\n                        <input id=\"mSlider\" type=\"range\" min=\"0.5\" max=\"10\" step=\"0.5\" value=\"2.0\" class=\"w-full h-2 bg-slate-200 rounded-lg appearance-none\">\n                        <div class=\"flex justify-between text-xs text-slate-400\">\n                            <span>0.5 kg<\/span>\n                            <span>g = 9.81 m\/s\u00b2<\/span>\n                            <span>10.0 kg<\/span>\n                        <\/div>\n                    <\/div>\n\n                    <!-- \u0395\u03c0\u03b9\u03bb\u03bf\u03b3\u03ae \u039b\u03b5\u03b9\u03c4\u03bf\u03c5\u03c1\u03b3\u03af\u03b1\u03c2 \u039a\u03af\u03bd\u03b7\u03c3\u03b7\u03c2 -->\n                    <div class=\"pt-2 border-t border-slate-100\">\n                        <span class=\"block text-sm font-medium text-slate-700 mb-2\">\u039b\u03b5\u03b9\u03c4\u03bf\u03c5\u03c1\u03b3\u03af\u03b1 \u039a\u03af\u03bd\u03b7\u03c3\u03b7\u03c2<\/span>\n                        <div class=\"grid grid-cols-2 gap-2 p-1 bg-slate-100 rounded-xl\">\n                            <button id=\"modeEquilibrium\" class=\"py-2 px-3 rounded-lg text-xs sm:text-sm font-semibold bg-white text-blue-700 shadow-sm transition-all\">\n                                \u0399\u03c3\u03bf\u03c1\u03c1\u03bf\u03c0\u03af\u03b1 (\u0391\u03c0\u03cc\u03c3\u03b2\u03b5\u03c3\u03b7)\n                            <\/button>\n                            <button id=\"modeOscillation\" class=\"py-2 px-3 rounded-lg text-xs sm:text-sm font-medium text-slate-600 hover:text-slate-900 transition-all\">\n                                \u0391\u03c0\u03bb\u03ae \u0391\u03c1\u03bc\u03bf\u03bd\u03b9\u03ba\u03ae \u03a4\u03b1\u03bb\u03ac\u03bd\u03c4\u03c9\u03c3\u03b7\n                            <\/button>\n                        <\/div>\n                    <\/div>\n                <\/div>\n\n                <!-- \u039a\u03ac\u03c1\u03c4\u03b1 \u0396\u03c9\u03bd\u03c4\u03b1\u03bd\u03ce\u03bd \u039c\u03b5\u03c4\u03c1\u03ae\u03c3\u03b5\u03c9\u03bd -->\n                <div class=\"grid grid-cols-2 sm:grid-cols-3 gap-3\">\n                    <div class=\"bg-white rounded-2xl border border-slate-200 p-4 shadow-sm\">\n                        <div class=\"text-xs font-medium text-slate-500 mb-1\">\u0394\u03cd\u03bd\u03b1\u03bc\u03b7 (F)<\/div>\n                        <div id=\"readoutF\" class=\"text-xl font-bold text-rose-600\">19.62 N<\/div>\n                        <div class=\"text-[11px] text-slate-400 mt-0.5\">F = m \u00b7 g<\/div>\n                    <\/div>\n                    <div class=\"bg-white rounded-2xl border border-slate-200 p-4 shadow-sm\">\n                        <div class=\"text-xs font-medium text-slate-500 mb-1\">\u0395\u03c0\u03b9\u03bc\u03ae\u03ba\u03c5\u03bd\u03c3\u03b7 (\u0394x)<\/div>\n                        <div id=\"readoutDx\" class=\"text-xl font-bold text-blue-600\">0.196 m<\/div>\n                        <div id=\"readoutDxCm\" class=\"text-[11px] text-slate-500 mt-0.5\">19.6 cm<\/div>\n                    <\/div>\n                    <div class=\"col-span-2 sm:col-span-1 bg-white rounded-2xl border border-slate-200 p-4 shadow-sm\">\n                        <div class=\"text-xs font-medium text-slate-500 mb-1\">\u0394\u03c5\u03bd\u03b1\u03bc\u03b9\u03ba\u03ae \u0395\u03bd\u03ad\u03c1\u03b3\u03b5\u03b9\u03b1 (U)<\/div>\n                        <div id=\"readoutU\" class=\"text-xl font-bold text-amber-600\">1.92 J<\/div>\n                        <div class=\"text-[11px] text-slate-400 mt-0.5\">U = \u00bd k (\u0394x)\u00b2<\/div>\n                    <\/div>\n                <\/div>\n\n                <!-- \u039a\u03ac\u03c1\u03c4\u03b1 \u0396\u03c9\u03bd\u03c4\u03b1\u03bd\u03bf\u03cd \u0393\u03c1\u03b1\u03c6\u03ae\u03bc\u03b1\u03c4\u03bf\u03c2 F - \u0394x -->\n                <div class=\"bg-white rounded-2xl border border-slate-200 shadow-sm overflow-hidden flex flex-col\">\n                    <div class=\"px-5 py-3 border-b border-slate-100 flex items-center justify-between bg-slate-50\/60\">\n                        <h2 class=\"font-semibold text-slate-800 text-sm sm:text-base\">\u0393\u03c1\u03ac\u03c6\u03b7\u03bc\u03b1 \u0394\u03cd\u03bd\u03b1\u03bc\u03b7\u03c2 &#8211; \u0395\u03c0\u03b9\u03bc\u03ae\u03ba\u03c5\u03bd\u03c3\u03b7\u03c2 (F &#8211; \u0394x)<\/h2>\n                        <span class=\"text-xs text-amber-700 bg-amber-50 border border-amber-200 px-2 py-0.5 rounded-md font-medium\">\n                            \u0395\u03bc\u03b2\u03b1\u03b4\u03cc\u03bd = U\n                        <\/span>\n                    <\/div>\n                    <div id=\"graphContainer\" class=\"relative w-full h-[240px] sm:h-[260px] p-2\">\n                        <canvas id=\"graphCanvas\" class=\"w-full h-full block\"><\/canvas>\n                    <\/div>\n                <\/div>\n\n            <\/section>\n        <\/div>\n    <\/main>\n\n    <script>\n        \/**\n         * \u03a0\u03c1\u03bf\u03c3\u03bf\u03bc\u03bf\u03af\u03c9\u03c3\u03b7 \u039d\u03cc\u03bc\u03bf\u03c5 \u03c4\u03bf\u03c5 \u03a7\u03bf\u03c5\u03ba (F = k * \u0394x)\n         * \u03a0\u03b5\u03c1\u03b9\u03bb\u03b1\u03bc\u03b2\u03ac\u03bd\u03b5\u03b9:\n         * - \u03a6\u03c5\u03c3\u03b9\u03ba\u03ae \u03bc\u03b7\u03c7\u03b1\u03bd\u03ae \u03b5\u03bb\u03b1\u03c4\u03b7\u03c1\u03af\u03bf\u03c5 (\u03bc\u03b5 \u03b1\u03c0\u03cc\u03c3\u03b2\u03b5\u03c3\u03b7 \u03ae \u03b1\u03c0\u03bb\u03ae \u03b1\u03c1\u03bc\u03bf\u03bd\u03b9\u03ba\u03ae \u03c4\u03b1\u03bb\u03ac\u03bd\u03c4\u03c9\u03c3\u03b7)\n         * - \u0394\u03b9\u03b1\u03b4\u03c1\u03b1\u03c3\u03c4\u03b9\u03ba\u03cc \u03c3\u03cd\u03c1\u03c3\u03b9\u03bc\u03bf (drag & drop) \u03c4\u03b7\u03c2 \u03bc\u03ac\u03b6\u03b1\u03c2 \u03bc\u03b5 \u03c0\u03bf\u03bd\u03c4\u03af\u03ba\u03b9 \u03ae \u03b1\u03c6\u03ae\n         * - \u0391\u03c0\u03b5\u03b9\u03ba\u03cc\u03bd\u03b9\u03c3\u03b7 \u03b4\u03b9\u03b1\u03bd\u03c5\u03c3\u03bc\u03ac\u03c4\u03c9\u03bd \u03b4\u03c5\u03bd\u03ac\u03bc\u03b5\u03c9\u03bd \u03ba\u03b1\u03b9 \u03c7\u03ac\u03c1\u03b1\u03ba\u03b1 \u03c3\u03b5 cm\n         * - \u0396\u03c9\u03bd\u03c4\u03b1\u03bd\u03cc \u03b3\u03c1\u03ac\u03c6\u03b7\u03bc\u03b1 F - \u0394x \u03bc\u03b5 \u03c3\u03ba\u03b9\u03b1\u03c3\u03bc\u03ad\u03bd\u03bf \u03b5\u03bc\u03b2\u03b1\u03b4\u03cc\u03bd \u03b4\u03c5\u03bd\u03b1\u03bc\u03b9\u03ba\u03ae\u03c2 \u03b5\u03bd\u03ad\u03c1\u03b3\u03b5\u03b9\u03b1\u03c2 U\n         *\/\n\n        \/\/ \u03a3\u03c4\u03b1\u03b8\u03b5\u03c1\u03ac \u03b2\u03b1\u03c1\u03cd\u03c4\u03b7\u03c4\u03b1\u03c2\n        const G = 9.81;\n\n        \/\/ \u039a\u03b1\u03c4\u03ac\u03c3\u03c4\u03b1\u03c3\u03b7 \u03c0\u03c1\u03bf\u03c3\u03bf\u03bc\u03bf\u03af\u03c9\u03c3\u03b7\u03c2\n        const state = {\n            k: 100,                 \/\/ \u03a3\u03c4\u03b1\u03b8\u03b5\u03c1\u03ac \u03b5\u03bb\u03b1\u03c4\u03b7\u03c1\u03af\u03bf\u03c5 (N\/m)\n            m: 2.0,                 \/\/ \u039c\u03ac\u03b6\u03b1 (kg)\n            oscillationMode: false, \/\/ false = \u0399\u03c3\u03bf\u03c1\u03c1\u03bf\u03c0\u03af\u03b1 (\u03bc\u03b5 \u03b1\u03c0\u03cc\u03c3\u03b2\u03b5\u03c3\u03b7), true = \u0391\u03c0\u03bb\u03ae \u0391\u03c1\u03bc\u03bf\u03bd\u03b9\u03ba\u03ae \u03a4\u03b1\u03bb\u03ac\u03bd\u03c4\u03c9\u03c3\u03b7\n            x: 0,                   \/\/ \u03a4\u03c1\u03ad\u03c7\u03bf\u03c5\u03c3\u03b1 \u03b5\u03c0\u03b9\u03bc\u03ae\u03ba\u03c5\u03bd\u03c3\u03b7 \u03c3\u03b5 \u03bc\u03ad\u03c4\u03c1\u03b1 (m)\n            v: 0,                   \/\/ \u03a4\u03c1\u03ad\u03c7\u03bf\u03c5\u03c3\u03b1 \u03c4\u03b1\u03c7\u03cd\u03c4\u03b7\u03c4\u03b1 (m\/s)\n            isDragging: false,      \/\/ \u0391\u03bd \u03bf \u03c7\u03c1\u03ae\u03c3\u03c4\u03b7\u03c2 \u03c3\u03ad\u03c1\u03bd\u03b5\u03b9 \u03c4\u03b7 \u03bc\u03ac\u03b6\u03b1\n            dragOffsetY: 0          \/\/ \u0391\u03c0\u03cc\u03ba\u03bb\u03b9\u03c3\u03b7 \u03ba\u03b1\u03c4\u03ac \u03c4\u03bf \u03c3\u03cd\u03c1\u03c3\u03b9\u03bc\u03bf\n        };\n\n        \/\/ \u0391\u03c1\u03c7\u03b9\u03ba\u03bf\u03c0\u03bf\u03af\u03b7\u03c3\u03b7 \u03c4\u03b7\u03c2 \u03b8\u03ad\u03c3\u03b7\u03c2 x \u03c3\u03c4\u03b7\u03bd \u03ba\u03b1\u03c4\u03ac\u03c3\u03c4\u03b1\u03c3\u03b7 \u03b9\u03c3\u03bf\u03c1\u03c1\u03bf\u03c0\u03af\u03b1\u03c2\n        state.x = (state.m * G) \/ state.k;\n\n        \/\/ \u03a3\u03c4\u03bf\u03b9\u03c7\u03b5\u03af\u03b1 DOM\n        const simCanvas = document.getElementById('simCanvas');\n        const simCtx = simCanvas.getContext('2d');\n        const graphCanvas = document.getElementById('graphCanvas');\n        const graphCtx = graphCanvas.getContext('2d');\n\n        const kSlider = document.getElementById('kSlider');\n        const mSlider = document.getElementById('mSlider');\n        const kValue = document.getElementById('kValue');\n        const mValue = document.getElementById('mValue');\n        const resetBtn = document.getElementById('resetBtn');\n        const modeEquilibrium = document.getElementById('modeEquilibrium');\n        const modeOscillation = document.getElementById('modeOscillation');\n\n        const readoutF = document.getElementById('readoutF');\n        const readoutDx = document.getElementById('readoutDx');\n        const readoutDxCm = document.getElementById('readoutDxCm');\n        const readoutU = document.getElementById('readoutU');\n\n        \/\/ \u039c\u03b5\u03c4\u03b1\u03b2\u03bb\u03b7\u03c4\u03ad\u03c2 \u03ba\u03bb\u03af\u03bc\u03b1\u03ba\u03b1\u03c2 \u03ba\u03b1\u03bc\u03b2\u03ac\n        let pixelsPerMeter = 120; \/\/ \u03a0\u03c1\u03bf\u03c3\u03b1\u03c1\u03bc\u03cc\u03b6\u03b5\u03c4\u03b1\u03b9 \u03b4\u03c5\u03bd\u03b1\u03bc\u03b9\u03ba\u03ac \u03b1\u03bd\u03ac\u03bb\u03bf\u03b3\u03b1 \u03bc\u03b5 \u03c4\u03bf \u03cd\u03c8\u03bf\u03c2 \u03c4\u03bf\u03c5 \u03ba\u03b1\u03bc\u03b2\u03ac\n        let ceilingY = 36;\n        let naturalLengthPx = 90;\n\n        \/**\n         * \u03a0\u03c1\u03bf\u03c3\u03b1\u03c1\u03bc\u03bf\u03b3\u03ae \u03b4\u03b9\u03b1\u03c3\u03c4\u03ac\u03c3\u03b5\u03c9\u03bd \u03c4\u03c9\u03bd \u03ba\u03b1\u03bc\u03b2\u03ac\u03b4\u03c9\u03bd \u03b3\u03b9\u03b1 \u03b5\u03c5\u03ba\u03c1\u03af\u03bd\u03b5\u03b9\u03b1 \u03c3\u03b5 \u03bf\u03b8\u03cc\u03bd\u03b5\u03c2 Retina\/HiDPI\n         *\/\n        function resizeCanvases() {\n            const dpr = window.devicePixelRatio || 1;\n\n            const simRect = simCanvas.parentElement.getBoundingClientRect();\n            simCanvas.width = simRect.width * dpr;\n            simCanvas.height = simRect.height * dpr;\n            simCtx.setTransform(dpr, 0, 0, dpr, 0, 0);\n\n            \/\/ \u03a5\u03c0\u03bf\u03bb\u03bf\u03b3\u03b9\u03c3\u03bc\u03cc\u03c2 \u03ba\u03bb\u03af\u03bc\u03b1\u03ba\u03b1\u03c2 \u03ce\u03c3\u03c4\u03b5 \u03bc\u03ad\u03b3\u03b9\u03c3\u03c4\u03b7 \u03b5\u03c0\u03b9\u03bc\u03ae\u03ba\u03c5\u03bd\u03c3\u03b7 ~1.5m-2m \u03bd\u03b1 \u03c7\u03c9\u03c1\u03ac\u03b5\u03b9 \u03ac\u03bd\u03b5\u03c4\u03b1\n            const availableH = simRect.height - 140;\n            pixelsPerMeter = Math.max(85, Math.min(150, availableH \/ 2.2));\n            naturalLengthPx = Math.max(60, simRect.height * 0.16);\n\n            const graphRect = graphCanvas.parentElement.getBoundingClientRect();\n            graphCanvas.width = graphRect.width * dpr;\n            graphCanvas.height = graphRect.height * dpr;\n            graphCtx.setTransform(dpr, 0, 0, dpr, 0, 0);\n        }\n\n        window.addEventListener('resize', resizeCanvases);\n\n        \/**\n         * \u0395\u03bd\u03b7\u03bc\u03ad\u03c1\u03c9\u03c3\u03b7 \u03c4\u03c9\u03bd \u03c1\u03c5\u03b8\u03bc\u03b9\u03c3\u03c4\u03ce\u03bd \u03ba\u03b1\u03b9 \u03c4\u03c9\u03bd \u03ba\u03bf\u03c5\u03bc\u03c0\u03b9\u03ce\u03bd\n         *\/\n        kSlider.addEventListener('input', (e) => {\n            state.k = parseFloat(e.target.value);\n            kValue.textContent = `${state.k} N\/m`;\n        });\n\n        mSlider.addEventListener('input', (e) => {\n            state.m = parseFloat(e.target.value);\n            mValue.textContent = `${state.m.toFixed(1)} kg`;\n        });\n\n        modeEquilibrium.addEventListener('click', () => {\n            state.oscillationMode = false;\n            modeEquilibrium.className = 'py-2 px-3 rounded-lg text-xs sm:text-sm font-semibold bg-white text-blue-700 shadow-sm transition-all';\n            modeOscillation.className = 'py-2 px-3 rounded-lg text-xs sm:text-sm font-medium text-slate-600 hover:text-slate-900 transition-all';\n        });\n\n        modeOscillation.addEventListener('click', () => {\n            state.oscillationMode = true;\n            modeOscillation.className = 'py-2 px-3 rounded-lg text-xs sm:text-sm font-semibold bg-white text-blue-700 shadow-sm transition-all';\n            modeEquilibrium.className = 'py-2 px-3 rounded-lg text-xs sm:text-sm font-medium text-slate-600 hover:text-slate-900 transition-all';\n        });\n\n        resetBtn.addEventListener('click', () => {\n            state.k = 100;\n            state.m = 2.0;\n            kSlider.value = 100;\n            mSlider.value = 2.0;\n            kValue.textContent = '100 N\/m';\n            mValue.textContent = '2.0 kg';\n            state.x = (state.m * G) \/ state.k;\n            state.v = 0;\n        });\n\n        \/**\n         * \u0394\u03b9\u03b1\u03c7\u03b5\u03af\u03c1\u03b9\u03c3\u03b7 \u03b1\u03bb\u03bb\u03b7\u03bb\u03b5\u03c0\u03af\u03b4\u03c1\u03b1\u03c3\u03b7\u03c2 (Drag & Drop) \u03b3\u03b9\u03b1 \u03c0\u03bf\u03bd\u03c4\u03af\u03ba\u03b9 \u03ba\u03b1\u03b9 \u03bf\u03b8\u03cc\u03bd\u03b5\u03c2 \u03b1\u03c6\u03ae\u03c2\n         *\/\n        function getPointerPos(e) {\n            const rect = simCanvas.getBoundingClientRect();\n            const clientY = e.touches ? e.touches[0].clientY : e.clientY;\n            const clientX = e.touches ? e.touches[0].clientX : e.clientX;\n            return { x: clientX - rect.left, y: clientY - rect.top };\n        }\n\n        function startDrag(e) {\n            const pos = getPointerPos(e);\n            const width = simCanvas.getBoundingClientRect().width;\n            const centerX = width * 0.42;\n            const eqY = ceilingY + naturalLengthPx;\n            const massY = eqY + state.x * pixelsPerMeter;\n            const blockSize = 44 + state.m * 2.5;\n\n            \/\/ \u0388\u03bb\u03b5\u03b3\u03c7\u03bf\u03c2 \u03b1\u03bd \u03c4\u03bf \u03ba\u03bb\u03b9\u03ba\/\u03ac\u03b3\u03b3\u03b9\u03b3\u03bc\u03b1 \u03b5\u03af\u03bd\u03b1\u03b9 \u03c0\u03ac\u03bd\u03c9 \u03c3\u03c4\u03bf \u03b2\u03b1\u03c1\u03af\u03b4\u03b9\n            if (Math.abs(pos.x - centerX) <= blockSize &#038;&#038; pos.y >= massY && pos.y <= massY + blockSize + 20) {\n                state.isDragging = true;\n                state.dragOffsetY = pos.y - massY;\n                state.v = 0;\n            }\n        }\n\n        function onDrag(e) {\n            if (!state.isDragging) return;\n            e.preventDefault();\n            const pos = getPointerPos(e);\n            const eqY = ceilingY + naturalLengthPx;\n            const newMassY = pos.y - state.dragOffsetY;\n            \/\/ \u03a0\u03b5\u03c1\u03b9\u03bf\u03c1\u03b9\u03c3\u03bc\u03cc\u03c2 \u03b5\u03c0\u03b9\u03bc\u03ae\u03ba\u03c5\u03bd\u03c3\u03b7\u03c2 \u03c3\u03b5 \u03bb\u03bf\u03b3\u03b9\u03ba\u03ac \u03cc\u03c1\u03b9\u03b1 (-0.3m \u03ad\u03c9\u03c2 2.5m)\n            state.x = Math.max(-0.25, Math.min(2.5, (newMassY - eqY) \/ pixelsPerMeter));\n            state.v = 0;\n        }\n\n        function endDrag() {\n            state.isDragging = false;\n        }\n\n        simCanvas.addEventListener('mousedown', startDrag);\n        window.addEventListener('mousemove', onDrag);\n        window.addEventListener('mouseup', endDrag);\n\n        simCanvas.addEventListener('touchstart', startDrag, { passive: false });\n        window.addEventListener('touchmove', onDrag, { passive: false });\n        window.addEventListener('touchend', endDrag);\n\n        \/**\n         * \u03a5\u03c0\u03bf\u03bb\u03bf\u03b3\u03b9\u03c3\u03bc\u03cc\u03c2 \u03b2\u03ae\u03bc\u03b1\u03c4\u03bf\u03c2 \u03c6\u03c5\u03c3\u03b9\u03ba\u03ae\u03c2 (Euler-Cromer \u03b3\u03b9\u03b1 \u03c3\u03c4\u03b1\u03b8\u03b5\u03c1\u03cc\u03c4\u03b7\u03c4\u03b1)\n         *\/\n        let lastTime = performance.now();\n        function updatePhysics(now) {\n            const dt = Math.min(0.03, (now - lastTime) \/ 1000);\n            lastTime = now;\n\n            if (!state.isDragging) {\n                \/\/ \u0394\u03cd\u03bd\u03b1\u03bc\u03b7 \u03b2\u03b1\u03c1\u03cd\u03c4\u03b7\u03c4\u03b1\u03c2 \u03c0\u03c1\u03bf\u03c2 \u03c4\u03b1 \u03ba\u03ac\u03c4\u03c9 (+), \u0394\u03cd\u03bd\u03b1\u03bc\u03b7 \u03b5\u03bb\u03b1\u03c4\u03b7\u03c1\u03af\u03bf\u03c5 \u03c0\u03c1\u03bf\u03c2 \u03c4\u03b1 \u03c0\u03ac\u03bd\u03c9 (-)\n                const F_gravity = state.m * G;\n                const F_spring = -state.k * state.x;\n                \/\/ \u0391\u03c0\u03cc\u03c3\u03b2\u03b5\u03c3\u03b7: \u03c5\u03c8\u03b7\u03bb\u03ae \u03c3\u03c4\u03b7\u03bd \u03ba\u03b1\u03c4\u03ac\u03c3\u03c4\u03b1\u03c3\u03b7 \u03b9\u03c3\u03bf\u03c1\u03c1\u03bf\u03c0\u03af\u03b1\u03c2, \u03bc\u03b7\u03b4\u03b5\u03bd\u03b9\u03ba\u03ae\/\u03b5\u03bb\u03ac\u03c7\u03b9\u03c3\u03c4\u03b7 \u03c3\u03c4\u03b7\u03bd \u03c4\u03b1\u03bb\u03ac\u03bd\u03c4\u03c9\u03c3\u03b7\n                const dampingCoeff = state.oscillationMode ? 0.05 : 7.5;\n                const F_damping = -dampingCoeff * state.v;\n\n                const acceleration = (F_gravity + F_spring + F_damping) \/ state.m;\n                state.v += acceleration * dt;\n                state.x += state.v * dt;\n\n                \/\/ \u0391\u03c0\u03bf\u03c6\u03c5\u03b3\u03ae \u03bc\u03b9\u03ba\u03c1\u03bf\u03c3\u03ba\u03bf\u03c0\u03b9\u03ba\u03ce\u03bd \u03c4\u03b1\u03bb\u03b1\u03bd\u03c4\u03ce\u03c3\u03b5\u03c9\u03bd \u03c3\u03c4\u03b7\u03bd \u03ba\u03b1\u03c4\u03ac\u03c3\u03c4\u03b1\u03c3\u03b7 \u03b9\u03c3\u03bf\u03c1\u03c1\u03bf\u03c0\u03af\u03b1\u03c2\n                if (!state.oscillationMode &#038;&#038; Math.abs(state.v) < 0.001 &#038;&#038; Math.abs(F_gravity + F_spring) < 0.05) {\n                    state.v = 0;\n                    state.x = F_gravity \/ state.k;\n                }\n            }\n        }\n\n        \/**\n         * \u03a3\u03c7\u03b5\u03b4\u03af\u03b1\u03c3\u03b7 \u03b2\u03ad\u03bb\u03bf\u03c5\u03c2 (\u03b4\u03b9\u03b1\u03bd\u03cd\u03c3\u03bc\u03b1\u03c4\u03bf\u03c2 \u03b4\u03cd\u03bd\u03b1\u03bc\u03b7\u03c2)\n         *\/\n        function drawArrow(ctx, fromX, fromY, toX, toY, color, label) {\n            const headlen = 9;\n            const dx = toX - fromX;\n            const dy = toY - fromY;\n            const length = Math.hypot(dx, dy);\n            if (length < 4) return;\n\n            const angle = Math.atan2(dy, dx);\n            ctx.save();\n            ctx.strokeStyle = color;\n            ctx.fillStyle = color;\n            ctx.lineWidth = 3;\n            ctx.lineCap = 'round';\n\n            ctx.beginPath();\n            ctx.moveTo(fromX, fromY);\n            ctx.lineTo(toX, toY);\n            ctx.stroke();\n\n            ctx.beginPath();\n            ctx.moveTo(toX, toY);\n            ctx.lineTo(toX - headlen * Math.cos(angle - Math.PI \/ 6), toY - headlen * Math.sin(angle - Math.PI \/ 6));\n            ctx.lineTo(toX - headlen * Math.cos(angle + Math.PI \/ 6), toY - headlen * Math.sin(angle + Math.PI \/ 6));\n            ctx.closePath();\n            ctx.fill();\n\n            if (label) {\n                ctx.font = 'bold 12px Inter, sans-serif';\n                ctx.textAlign = 'left';\n                ctx.fillText(label, toX + 8, toY + (dy > 0 ? 4 : 4));\n            }\n            ctx.restore();\n        }\n\n        \/**\n         * \u03a3\u03c7\u03b5\u03b4\u03af\u03b1\u03c3\u03b7 \u03c4\u03bf\u03c5 \u03b5\u03bb\u03b1\u03c4\u03b7\u03c1\u03af\u03bf\u03c5 (\u03b6\u03b9\u03b3\u03ba-\u03b6\u03b1\u03b3\u03ba)\n         *\/\n        function drawSpring(ctx, x, startY, endY, coils = 14, width = 18) {\n            ctx.save();\n            ctx.strokeStyle = '#475569';\n            ctx.lineWidth = 2.5;\n            ctx.lineJoin = 'round';\n            ctx.lineCap = 'round';\n\n            const totalLen = Math.max(20, endY - startY);\n            const lead = 12;\n            const coilLen = totalLen - 2 * lead;\n            const step = coilLen \/ coils;\n\n            ctx.beginPath();\n            ctx.moveTo(x, startY);\n            ctx.lineTo(x, startY + lead);\n\n            for (let i = 0; i < coils; i++) {\n                const y1 = startY + lead + i * step + step * 0.25;\n                const y2 = startY + lead + i * step + step * 0.75;\n                const y3 = startY + lead + (i + 1) * step;\n                ctx.lineTo(x - width, y1);\n                ctx.lineTo(x + width, y2);\n                ctx.lineTo(x, y3);\n            }\n\n            ctx.lineTo(x, endY);\n            ctx.stroke();\n            ctx.restore();\n        }\n\n        \/**\n         * \u03a3\u03c7\u03b5\u03b4\u03af\u03b1\u03c3\u03b7 \u03c4\u03bf\u03c5 \u039a\u03b1\u03bc\u03b2\u03ac \u03a0\u03c1\u03bf\u03c3\u03bf\u03bc\u03bf\u03af\u03c9\u03c3\u03b7\u03c2\n         *\/\n        function drawSimulation() {\n            const rect = simCanvas.getBoundingClientRect();\n            const w = rect.width;\n            const h = rect.height;\n\n            simCtx.clearRect(0, 0, w, h);\n\n            const centerX = w * 0.42;\n            const eqY = ceilingY + naturalLengthPx;\n            const massY = eqY + state.x * pixelsPerMeter;\n\n            \/\/ 1. \u039f\u03c1\u03bf\u03c6\u03ae \/ \u03a3\u03c4\u03ae\u03c1\u03b9\u03b3\u03bc\u03b1\n            simCtx.fillStyle = '#334155';\n            simCtx.fillRect(centerX - 80, ceilingY - 12, 160, 12);\n            \/\/ \u0394\u03b9\u03b1\u03b3\u03c1\u03ac\u03bc\u03bc\u03b9\u03c3\u03b7 \u03bf\u03c1\u03bf\u03c6\u03ae\u03c2\n            simCtx.strokeStyle = '#94a3b8';\n            simCtx.lineWidth = 1.5;\n            for (let i = -70; i <= 70; i += 14) {\n                simCtx.beginPath();\n                simCtx.moveTo(centerX + i, ceilingY - 12);\n                simCtx.lineTo(centerX + i - 8, ceilingY - 22);\n                simCtx.stroke();\n            }\n\n            \/\/ 2. \u0393\u03c1\u03b1\u03bc\u03bc\u03ae \u03c6\u03c5\u03c3\u03b9\u03ba\u03bf\u03cd \u03bc\u03ae\u03ba\u03bf\u03c5\u03c2 (x = 0)\n            simCtx.save();\n            simCtx.setLineDash([6, 4]);\n            simCtx.strokeStyle = '#3b82f6';\n            simCtx.lineWidth = 1.5;\n            simCtx.beginPath();\n            simCtx.moveTo(centerX - 60, eqY);\n            simCtx.lineTo(w * 0.78, eqY);\n            simCtx.stroke();\n            simCtx.restore();\n\n            simCtx.fillStyle = '#2563eb';\n            simCtx.font = '600 11px Inter, sans-serif';\n            simCtx.textAlign = 'left';\n            simCtx.fillText('x = 0 (\u03a6\u03c5\u03c3\u03b9\u03ba\u03cc \u03bc\u03ae\u03ba\u03bf\u03c2)', centerX - 135, eqY - 6);\n\n            \/\/ 3. \u039a\u03ac\u03b8\u03b5\u03c4\u03bf\u03c2 \u03a7\u03ac\u03c1\u03b1\u03ba\u03b1\u03c2 (\u03c3\u03c4\u03b1 \u03b4\u03b5\u03be\u03b9\u03ac \u03c4\u03bf\u03c5 \u03b5\u03bb\u03b1\u03c4\u03b7\u03c1\u03af\u03bf\u03c5)\n            const rulerX = w * 0.78;\n            simCtx.fillStyle = '#f8fafc';\n            simCtx.strokeStyle = '#cbd5e1';\n            simCtx.lineWidth = 1;\n            simCtx.fillRect(rulerX, eqY - 30, 56, h - eqY + 10);\n            simCtx.strokeRect(rulerX, eqY - 30, 56, h - eqY + 10);\n\n            simCtx.fillStyle = '#475569';\n            simCtx.font = '11px Inter, sans-serif';\n            simCtx.textAlign = 'left';\n\n            \/\/ \u03a5\u03c0\u03bf\u03b4\u03b9\u03b1\u03b9\u03c1\u03ad\u03c3\u03b5\u03b9\u03c2 \u03b1\u03bd\u03ac 10 cm (0.1 m)\n            for (let cm = -20; cm <= 240; cm += 10) {\n                const tickY = eqY + (cm \/ 100) * pixelsPerMeter;\n                if (tickY < eqY - 20 || tickY > h - 25) continue;\n\n                const isMajor = cm % 50 === 0;\n                simCtx.strokeStyle = isMajor ? '#334155' : '#94a3b8';\n                simCtx.lineWidth = isMajor ? 1.5 : 1;\n                simCtx.beginPath();\n                simCtx.moveTo(rulerX, tickY);\n                simCtx.lineTo(rulerX + (isMajor ? 14 : 8), tickY);\n                simCtx.stroke();\n\n                if (isMajor) {\n                    simCtx.fillText(`${cm} cm`, rulerX + 18, tickY + 4);\n                }\n            }\n\n            \/\/ \u0394\u03b5\u03af\u03ba\u03c4\u03b7\u03c2 \u03c4\u03c1\u03ad\u03c7\u03bf\u03c5\u03c3\u03b1\u03c2 \u03b5\u03c0\u03b9\u03bc\u03ae\u03ba\u03c5\u03bd\u03c3\u03b7\u03c2 \u0394x \u03c3\u03c4\u03bf\u03bd \u03c7\u03ac\u03c1\u03b1\u03ba\u03b1\n            if (Math.abs(state.x) > 0.005) {\n                simCtx.save();\n                simCtx.setLineDash([3, 3]);\n                simCtx.strokeStyle = '#0f172a';\n                simCtx.lineWidth = 1.5;\n                simCtx.beginPath();\n                simCtx.moveTo(centerX + 20, massY);\n                simCtx.lineTo(rulerX, massY);\n                simCtx.stroke();\n                simCtx.restore();\n\n                simCtx.fillStyle = '#0f172a';\n                simCtx.beginPath();\n                simCtx.arc(rulerX, massY, 4, 0, Math.PI * 2);\n                simCtx.fill();\n            }\n\n            \/\/ 4. \u0395\u03bb\u03b1\u03c4\u03ae\u03c1\u03b9\u03bf\n            drawSpring(simCtx, centerX, ceilingY, massY, 14, 16);\n\n            \/\/ 5. \u03a3\u03ce\u03bc\u03b1 (\u0392\u03b1\u03c1\u03af\u03b4\u03b9)\n            const blockW = 46 + state.m * 2.5;\n            const blockH = 38 + state.m * 2;\n            const blockX = centerX - blockW \/ 2;\n            const blockY = massY;\n\n            \/\/ \u03a3\u03ba\u03b9\u03ac\n            simCtx.fillStyle = 'rgba(15, 23, 42, 0.08)';\n            simCtx.beginPath();\n            simCtx.roundRect(blockX + 3, blockY + 4, blockW, blockH, 8);\n            simCtx.fill();\n\n            \/\/ \u039a\u03cd\u03c1\u03b9\u03bf \u03c3\u03ce\u03bc\u03b1\n            const grad = simCtx.createLinearGradient(blockX, blockY, blockX + blockW, blockY + blockH);\n            grad.addColorStop(0, '#3b82f6');\n            grad.addColorStop(1, '#1d4ed8');\n            simCtx.fillStyle = grad;\n            simCtx.beginPath();\n            simCtx.roundRect(blockX, blockY, blockW, blockH, 8);\n            simCtx.fill();\n\n            simCtx.strokeStyle = '#1e40af';\n            simCtx.lineWidth = 1.5;\n            simCtx.stroke();\n\n            \/\/ \u0395\u03c4\u03b9\u03ba\u03ad\u03c4\u03b1 \u03bc\u03ac\u03b6\u03b1\u03c2 \u03c0\u03ac\u03bd\u03c9 \u03c3\u03c4\u03bf \u03b2\u03b1\u03c1\u03af\u03b4\u03b9\n            simCtx.fillStyle = '#ffffff';\n            simCtx.font = 'bold 13px Inter, sans-serif';\n            simCtx.textAlign = 'center';\n            simCtx.fillText(`${state.m.toFixed(1)} kg`, centerX, blockY + blockH \/ 2 + 5);\n\n            \/\/ 6. \u0394\u03b9\u03b1\u03bd\u03cd\u03c3\u03bc\u03b1\u03c4\u03b1 \u0394\u03c5\u03bd\u03ac\u03bc\u03b5\u03c9\u03bd\n            const forceScale = 1.4; \/\/ pixels per Newton\n            const F_gravity = state.m * G;\n            const F_spring = state.k * state.x;\n\n            \/\/ \u0394\u03b9\u03ac\u03bd\u03c5\u03c3\u03bc\u03b1 \u0392\u03ac\u03c1\u03bf\u03c5\u03c2 (\u03c0\u03c1\u03bf\u03c2 \u03c4\u03b1 \u03ba\u03ac\u03c4\u03c9)\n            const gVecLen = Math.min(130, F_gravity * forceScale);\n            drawArrow(simCtx, centerX, blockY + blockH \/ 2, centerX, blockY + blockH \/ 2 + gVecLen, '#e11d48', `F = ${F_gravity.toFixed(1)} N`);\n\n            \/\/ \u0394\u03b9\u03ac\u03bd\u03c5\u03c3\u03bc\u03b1 \u0394\u03cd\u03bd\u03b1\u03bc\u03b7\u03c2 \u0395\u03bb\u03b1\u03c4\u03b7\u03c1\u03af\u03bf\u03c5 (\u03c0\u03c1\u03bf\u03c2 \u03c4\u03b1 \u03c0\u03ac\u03bd\u03c9 \u03cc\u03c4\u03b1\u03bd \u0394x > 0)\n            if (Math.abs(F_spring) > 0.5) {\n                const sVecLen = Math.min(130, Math.abs(F_spring) * forceScale);\n                const dir = F_spring > 0 ? -1 : 1;\n                drawArrow(simCtx, centerX - 14, blockY + blockH \/ 2, centerX - 14, blockY + blockH \/ 2 + dir * sVecLen, '#059669', `F\u03b5\u03bb = ${Math.abs(F_spring).toFixed(1)} N`);\n            }\n        }\n\n        \/**\n         * \u03a3\u03c7\u03b5\u03b4\u03af\u03b1\u03c3\u03b7 \u03c4\u03bf\u03c5 \u0396\u03c9\u03bd\u03c4\u03b1\u03bd\u03bf\u03cd \u0393\u03c1\u03b1\u03c6\u03ae\u03bc\u03b1\u03c4\u03bf\u03c2 F - \u0394x\n         *\/\n        function drawGraph() {\n            const rect = graphCanvas.getBoundingClientRect();\n            const w = rect.width;\n            const h = rect.height;\n\n            graphCtx.clearRect(0, 0, w, h);\n\n            const padL = 48;\n            const padR = 20;\n            const padT = 18;\n            const padB = 36;\n            const plotW = w - padL - padR;\n            const plotH = h - padT - padB;\n\n            \/\/ \u038c\u03c1\u03b9\u03b1 \u03b1\u03be\u03cc\u03bd\u03c9\u03bd\n            const maxDx = 1.2; \/\/ \u03bc\u03ad\u03c4\u03c1\u03b1\n            const maxF = 120;  \/\/ Newton\n\n            const toX = (dx) => padL + (dx \/ maxDx) * plotW;\n            const toY = (f) => padT + plotH - (f \/ maxF) * plotH;\n\n            \/\/ \u03a0\u03bb\u03ad\u03b3\u03bc\u03b1 (Grid)\n            graphCtx.strokeStyle = '#f1f5f9';\n            graphCtx.lineWidth = 1;\n            for (let i = 0; i <= 4; i++) {\n                const y = padT + (plotH \/ 4) * i;\n                graphCtx.beginPath();\n                graphCtx.moveTo(padL, y);\n                graphCtx.lineTo(padL + plotW, y);\n                graphCtx.stroke();\n            }\n            for (let i = 0; i <= 4; i++) {\n                const x = padL + (plotW \/ 4) * i;\n                graphCtx.beginPath();\n                graphCtx.moveTo(x, padT);\n                graphCtx.lineTo(x, padT + plotH);\n                graphCtx.stroke();\n            }\n\n            \/\/ \u03a4\u03c1\u03ad\u03c7\u03bf\u03bd \u03c3\u03b7\u03bc\u03b5\u03af\u03bf \u03bb\u03b5\u03b9\u03c4\u03bf\u03c5\u03c1\u03b3\u03af\u03b1\u03c2 (\u03c7\u03c1\u03b7\u03c3\u03b9\u03bc\u03bf\u03c0\u03bf\u03b9\u03bf\u03cd\u03bc\u03b5 \u03b8\u03b5\u03c4\u03b9\u03ba\u03cc \u0394x \u03b3\u03b9\u03b1 \u03c4\u03bf \u03b3\u03c1\u03ac\u03c6\u03b7\u03bc\u03b1)\n            const currentDx = Math.max(0, state.x);\n            const currentF = state.k * currentDx;\n\n            \/\/ \u03a3\u03ba\u03b9\u03b1\u03c3\u03bc\u03ad\u03bd\u03bf \u03b5\u03bc\u03b2\u03b1\u03b4\u03cc\u03bd \u03ba\u03ac\u03c4\u03c9 \u03b1\u03c0\u03cc \u03c4\u03b7\u03bd \u03ba\u03b1\u03bc\u03c0\u03cd\u03bb\u03b7 (\u0394\u03c5\u03bd\u03b1\u03bc\u03b9\u03ba\u03ae \u0395\u03bd\u03ad\u03c1\u03b3\u03b5\u03b9\u03b1 U)\n            const clampedDx = Math.min(maxDx, currentDx);\n            const clampedF = Math.min(maxF, state.k * clampedDx);\n            if (clampedDx > 0) {\n                graphCtx.fillStyle = 'rgba(245, 158, 11, 0.22)';\n                graphCtx.beginPath();\n                graphCtx.moveTo(toX(0), toY(0));\n                graphCtx.lineTo(toX(clampedDx), toY(clampedF));\n                graphCtx.lineTo(toX(clampedDx), toY(0));\n                graphCtx.closePath();\n                graphCtx.fill();\n            }\n\n            \/\/ \u0395\u03c5\u03b8\u03b5\u03af\u03b1 \u039d\u03cc\u03bc\u03bf\u03c5 \u03c4\u03bf\u03c5 \u03a7\u03bf\u03c5\u03ba (F = k * \u0394x)\n            const lineEndDx = Math.min(maxDx, maxF \/ state.k);\n            const lineEndF = state.k * lineEndDx;\n            graphCtx.strokeStyle = '#2563eb';\n            graphCtx.lineWidth = 2.5;\n            graphCtx.beginPath();\n            graphCtx.moveTo(toX(0), toY(0));\n            graphCtx.lineTo(toX(lineEndDx), toY(lineEndF));\n            graphCtx.stroke();\n\n            \/\/ \u03a3\u03b7\u03bc\u03b5\u03af\u03bf \u03bb\u03b5\u03b9\u03c4\u03bf\u03c5\u03c1\u03b3\u03af\u03b1\u03c2\n            if (currentDx <= maxDx &#038;&#038; currentF <= maxF) {\n                graphCtx.fillStyle = '#e11d48';\n                graphCtx.beginPath();\n                graphCtx.arc(toX(currentDx), toY(currentF), 5.5, 0, Math.PI * 2);\n                graphCtx.fill();\n                graphCtx.strokeStyle = '#ffffff';\n                graphCtx.lineWidth = 2;\n                graphCtx.stroke();\n            }\n\n            \/\/ \u0386\u03be\u03bf\u03bd\u03b5\u03c2 X \u03ba\u03b1\u03b9 Y\n            graphCtx.strokeStyle = '#64748b';\n            graphCtx.lineWidth = 1.5;\n            graphCtx.beginPath();\n            graphCtx.moveTo(padL, padT);\n            graphCtx.lineTo(padL, padT + plotH);\n            graphCtx.lineTo(padL + plotW, padT + plotH);\n            graphCtx.stroke();\n\n            \/\/ \u0395\u03c4\u03b9\u03ba\u03ad\u03c4\u03b5\u03c2 \u03b1\u03be\u03cc\u03bd\u03c9\u03bd\n            graphCtx.fillStyle = '#475569';\n            graphCtx.font = '11px Inter, sans-serif';\n            graphCtx.textAlign = 'center';\n            for (let i = 0; i <= 4; i++) {\n                const val = ((maxDx \/ 4) * i).toFixed(1);\n                graphCtx.fillText(val, toX((maxDx \/ 4) * i), padT + plotH + 16);\n            }\n            graphCtx.font = 'bold 11px Inter, sans-serif';\n            graphCtx.fillText('\u0395\u03c0\u03b9\u03bc\u03ae\u03ba\u03c5\u03bd\u03c3\u03b7 \u0394x (m)', padL + plotW \/ 2, h - 4);\n\n            graphCtx.textAlign = 'right';\n            graphCtx.font = '11px Inter, sans-serif';\n            for (let i = 0; i <= 4; i++) {\n                const val = Math.round((maxF \/ 4) * i);\n                graphCtx.fillText(val, padL - 8, toY((maxF \/ 4) * i) + 4);\n            }\n\n            graphCtx.save();\n            graphCtx.translate(14, padT + plotH \/ 2);\n            graphCtx.rotate(-Math.PI \/ 2);\n            graphCtx.textAlign = 'center';\n            graphCtx.font = 'bold 11px Inter, sans-serif';\n            graphCtx.fillText('\u0394\u03cd\u03bd\u03b1\u03bc\u03b7 F (N)', 0, 0);\n            graphCtx.restore();\n        }\n\n        \/**\n         * \u0395\u03bd\u03b7\u03bc\u03ad\u03c1\u03c9\u03c3\u03b7 \u03c4\u03c9\u03bd \u03b1\u03c1\u03b9\u03b8\u03bc\u03b7\u03c4\u03b9\u03ba\u03ce\u03bd \u03b5\u03bd\u03b4\u03b5\u03af\u03be\u03b5\u03c9\u03bd (Readouts)\n         *\/\n        function updateReadouts() {\n            const F = state.m * G;\n            const dx = state.x;\n            const U = 0.5 * state.k * dx * dx;\n\n            readoutF.textContent = `${F.toFixed(2)} N`;\n            readoutDx.textContent = `${dx.toFixed(3)} m`;\n            readoutDxCm.textContent = `${(dx * 100).toFixed(1)} cm`;\n            readoutU.textContent = `${U.toFixed(2)} J`;\n        }\n\n        \/**\n         * \u039a\u03cd\u03c1\u03b9\u03bf\u03c2 \u03b2\u03c1\u03cc\u03c7\u03bf\u03c2 \u03ba\u03af\u03bd\u03b7\u03c3\u03b7\u03c2 (Animation Loop)\n         *\/\n        function animate(now) {\n            updatePhysics(now);\n            drawSimulation();\n            drawGraph();\n            updateReadouts();\n            requestAnimationFrame(animate);\n        }\n\n        \/\/ \u0395\u03ba\u03ba\u03af\u03bd\u03b7\u03c3\u03b7 \u03ba\u03b1\u03c4\u03ac \u03c4\u03b7 \u03c6\u03cc\u03c1\u03c4\u03c9\u03c3\u03b7 \u03c4\u03bf\u03c5 \u03c0\u03b1\u03c1\u03b1\u03b8\u03cd\u03c1\u03bf\u03c5\n        window.onload = function () {\n            resizeCanvases();\n            lastTime = performance.now();\n            requestAnimationFrame(animate);\n        };\n    <\/script>\n<\/body>\n<\/html>\n","protected":false},"excerpt":{"rendered":"<p>\u039d\u03cc\u03bc\u03bf\u03c2 \u03c4\u03bf\u03c5 \u03a7\u03bf\u03c5\u03ba &#8211; \u0394\u03b9\u03b1\u03b4\u03c1\u03b1\u03c3\u03c4\u03b9\u03ba\u03ae \u03a0\u03c1\u03bf\u03c3\u03bf\u03bc\u03bf\u03af\u03c9\u03c3\u03b7 \u03a6\u03c5\u03c3\u03b9\u03ba\u03ae\u03c2 F \u039d\u03cc\u03bc\u03bf\u03c2 \u03c4\u03bf\u03c5 \u03a7\u03bf\u03c5\u03ba (Hooke&#8217;s Law) \u0395\u03b9\u03ba\u03bf\u03bd\u03b9\u03ba\u03cc \u0395\u03c1\u03b3\u03b1\u03c3\u03c4\u03ae\u03c1\u03b9\u03bf \u03a6\u03c5\u03c3\u03b9\u03ba\u03ae\u03c2 \u2022 \u0395\u03bb\u03b1\u03c3\u03c4\u03b9\u03ba\u03ae \u03a0\u03b1\u03c1\u03b1\u03bc\u03cc\u03c1\u03c6\u03c9\u03c3\u03b7 &amp; \u03a4\u03b1\u03bb\u03ac\u03bd\u03c4\u03c9\u03c3\u03b7 \u03a4\u03cd\u03c0\u03bf\u03c2: F = k \u00b7 \u0394x \u03a0\u03b5\u03b9\u03c1\u03b1\u03bc\u03b1\u03c4\u03b9\u03ba\u03ae \u0394\u03b9\u03ac\u03c4\u03b1\u03be\u03b7 \u03a3\u03cd\u03c1\u03b5\u03c4\u03b5 \u03c4\u03bf \u03b2\u03b1\u03c1\u03af\u03b4\u03b9 \u03b3\u03b9\u03b1 \u03b4\u03bf\u03ba\u03b9\u03bc\u03ae \u0392\u03ac\u03c1\u03bf\u03c2 \/ \u0395\u03c6\u03b1\u03c1\u03bc\u03bf\u03b6\u03cc\u03bc\u03b5\u03bd\u03b7 \u0394\u03cd\u03bd\u03b1\u03bc\u03b7 (F) \u0394\u03cd\u03bd\u03b1\u03bc\u03b7 \u0395\u03c0\u03b1\u03bd\u03b1\u03c6\u03bf\u03c1\u03ac\u03c2 \u0395\u03bb\u03b1\u03c4\u03b7\u03c1\u03af\u03bf\u03c5 (F\u03b5\u03bb) \u03a6\u03c5\u03c3\u03b9\u03ba\u03cc \u039c\u03ae\u03ba\u03bf\u03c2 (x = 0) \u03a0\u03b1\u03c1\u03ac\u03bc\u03b5\u03c4\u03c1\u03bf\u03b9 \u03a0\u03b5\u03b9\u03c1\u03ac\u03bc\u03b1\u03c4\u03bf\u03c2 \u0395\u03c0\u03b1\u03bd\u03b1\u03c6\u03bf\u03c1\u03ac \u03a3\u03c4\u03b1\u03b8\u03b5\u03c1\u03ac \u03b5\u03bb\u03b1\u03c4\u03b7\u03c1\u03af\u03bf\u03c5 (k) 100 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-370","post","type-post","status-publish","format-standard","hentry","category-1"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/mde.biologia.gr\/index.php?rest_route=\/wp\/v2\/posts\/370","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mde.biologia.gr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mde.biologia.gr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mde.biologia.gr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mde.biologia.gr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=370"}],"version-history":[{"count":2,"href":"https:\/\/mde.biologia.gr\/index.php?rest_route=\/wp\/v2\/posts\/370\/revisions"}],"predecessor-version":[{"id":372,"href":"https:\/\/mde.biologia.gr\/index.php?rest_route=\/wp\/v2\/posts\/370\/revisions\/372"}],"wp:attachment":[{"href":"https:\/\/mde.biologia.gr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mde.biologia.gr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mde.biologia.gr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}