{"functions":[],"name":"Equazione di secondo grado","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_830d7a4d_b211_4fb5_8139_8241c5e72374"},{"@type":"Declare","tpe":"Real","name":"a","id":"id_ffb68222_32eb_46d5_a4dc_5dc7708fedc0","initValue":null},{"@type":"Declare","tpe":"Real","name":"b","id":"id_51577054_5cf4_42f7_a8e4_73e10b0e5026","initValue":null},{"@type":"Declare","tpe":"Integer","name":"c","id":"id_95c3f54c_f0cf_4d8b_ad88_c34509ddd6bd","initValue":null},{"@type":"Declare","tpe":"Real","name":"x1","id":"id_e0f7ed1d_9f51_4b0f_9dbd_6e8c3925bbee","initValue":null},{"@type":"Declare","tpe":"Real","name":"x2","id":"id_56d7b5f8_6188_47ef_8e8f_e8d3994fdc47","initValue":null},{"@type":"Declare","tpe":"Real","name":"delta","id":"id_c1f03a48_0c14_4621_8e00_047a3cd0c03c","initValue":null},{"@type":"Input","name":"a","id":"id_c7c0484e_d9d3_411f_bfba_5792aa9d33bd","prompt":"Inserisci il coefficiente a"},{"@type":"Input","name":"b","id":"id_a3800d6e_8ee2_4f5a_91da_3d94493e1ea8","prompt":"Inserisci il coefficiente b"},{"@type":"Input","name":"c","id":"id_77ba290a_1e54_4291_8b9e_a9060d3c3cec","prompt":"Inserisci il coefficiente c"},{"@type":"Assign","name":"delta","id":"id_869d4b8d_f23e_4862_93c3_722a3fe8dd11","value":"b*b - 4*a*c"},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_23b09ec8_052b_423d_b693_39a9f2793513","value":"\"Soluzioni non reali\""}],"id":"id_679fb87f_3931_4699_99fd_3675903ec943"},"trueBlock":{"statements":[{"@type":"Comment","id":"id_55e64c48_2ebe_4e4a_8fde_9fedca1d6d1b","text":"Ottimizzazione"},{"falseBlock":{"statements":[{"@type":"Assign","name":"x1","id":"id_40c3288b_0f5e_4d85_a7b0_4d1c1a9a7a72","value":"-b/2*a"},{"@type":"Assign","name":"x2","id":"id_3420e66d_c7df_43f3_bb60_ce557a229474","value":"x1"}],"id":"id_44a157f4_c27d_4c0e_8b48_35bde0868860"},"trueBlock":{"statements":[{"@type":"Assign","name":"x1","id":"id_9a8c85fd_fb79_4379_8a2a_89c0c614e892","value":"(-b - sqrt(delta))/2*a"},{"@type":"Assign","name":"x2","id":"id_590501cb_1d1c_464f_8c5e_1b1103d86064","value":"(-b + sqrt(delta))/2*a"}],"id":"id_390ef463_bb4e_4e66_a288_dff9f55bdf4b"},"condition":"delta!=0","@type":"If","id":"id_05057b4c_f737_44bc_b74c_09b9fcfb9457"},{"newline":true,"@type":"Output","id":"id_a297e456_040a_46db_8796_88b43b8f3837","value":"\"Le radici sono: \" + x1 + \" e \" + x2"}],"id":"id_330b1fbb_e200_40e0_b70c_1fdaf1ff5bd8"},"condition":"delta >= 0","@type":"If","id":"id_c41b9f95_f825_4ba8_8a6f_bbf5af7eca1f"},{"@type":"Return","id":"id_6b5bb488_552e_4c4b_8dba_ddd23bb7208d","maybeValue":null}],"parameters":[]},"id":"id_b6b1ee95_1675_42f7_b228_5e7b92dd00f2","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":true},"version":"0.2","revision":382}