This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <vector> | |
| #include <string> | |
| #include <filesystem> | |
| #include <conio.h> | |
| #define RESET "\033[0m" | |
| #define BOLD "\033[1m" | |
| #define RED "\033[31m" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const appletName = Object.keys(window).filter(k => k.startsWith('ggbApplet'))[1]; | |
| function parseParabola(str) { | |
| str = str.replace(/\s+/g, ''); | |
| const regex = /y=([+-]?\d*\.?\d*)\(x([+-]\d+)\)\^\{2\}([+-]\d+)?/; | |
| const match = str.match(regex); | |
| if (!match) { | |
| console.error('Формула не соответствует формату! Нажми "Новая формула"'); | |
| return null; |