by @Malvine Ferlaino Fork
{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_ca6673f1_f66e_40b5_847e_d785485862f9"},{"@type":"Declare","tpe":"Real","name":"a","id":"id_b18f4cfa_cd44_4659_8787_091df55e470d","initValue":null},{"@type":"Declare","tpe":"Real","name":"b","id":"id_2c91b781_ec14_434e_bb80_f9d45438d4e6","initValue":null},{"@type":"Declare","tpe":"Real","name":"c","id":"id_e313f334_0eaa_4539_9438_05197731933f","initValue":null},{"@type":"Declare","tpe":"Real","name":"x","id":"id_3f2b339f_60d3_4a26_826c_ec2c90192de5","initValue":null},{"@type":"Declare","tpe":"Real","name":"x1","id":"id_26a03ea0_c95a_4c3a_ad7e_4f8a3878ea94","initValue":null},{"@type":"Declare","tpe":"Real","name":"x2","id":"id_045ab3b0_ce2c_4586_822e_af2278331040","initValue":null},{"@type":"Declare","tpe":"Real","name":"delta","id":"id_c21af2ff_fbd5_4a32_806e_1091eecf053e","initValue":"(b*b)-4+a*c"},{"@type":"Comment","id":"id_0bc63a55_42a8_4983_90cd_5afeb3e24c33","text":"coefficiente variabile di secondo grado"},{"@type":"Input","name":"leggi a","id":"id_8526b181_fa25_4cf3_bbf1_a98cf95cb12a","prompt":null},{"@type":"Comment","id":"id_88a0c53c_f6cd_4a43_9ebb_140fe73693a8","text":"coefficiente variabile di primo grado"},{"@type":"Input","name":"leggi b","id":"id_c4d0939f_7c5b_417f_8481_b25366533a90","prompt":null},{"@type":"Comment","id":"id_ef393572_0233_45df_a326_d64e04a35b9a","text":"coefficiente termine noto"},{"@type":"Input","name":"leggi c","id":"id_e2cf19d7_3ce8_4db5_802e_c553d7a7a065","prompt":null},{"@type":"Declare","tpe":"String","name":"equazione","id":"id_f85590d4_c6b1_4ff9_884b_b35630b45e3a","initValue":null},{"@type":"Assign","name":"x","id":"id_8fcefef7_007b_4619_a1d3_fc64c1050572","value":"0"},{"@type":"Declare","tpe":"String","name":"y","id":"id_df70f9a4_19ee_46f4_bea5_8a079513d64a","initValue":"a+\"x^2+\"+b\"+\"x +\"+c\""},{"@type":"Declare","tpe":"String","name":"vx","id":"id_fafe31fe_0b8c_4e9b_97a1_6e9adfb350ac","initValue":null},{"@type":"Assign","name":"vx","id":"id_d7ed84da_6856_4eac_97b6_5e542c287249","value":"(-b)/4*a"},{"@type":"Declare","tpe":"String","name":"vy","id":"id_23f9f938_9d69_4c07_a409_d2e7a1547160","initValue":null},{"@type":"Assign","name":"vy","id":"id_c9bd99d7_59fa_4006_b7fe_f4759fca118b","value":"(-d)/4*a"},{"@type":"Comment","id":"id_4bf8eb28_c230_44b9_8fa1_35c2d06175ac","text":"il vertice ha coordinate (vx;vy)"},{"@type":"Declare","tpe":"String","name":"asse","id":"id_32cd3038_e53f_4a53_b340_08225f6dc02e","initValue":null},{"@type":"Assign","name":"x","id":"id_a584773c_e2eb_4e12_8abf_dd1355afcd46","value":"vx"},{"@type":"Comment","id":"id_8bb49a33_9049_4895_bc51_d92e7b258f6e","text":"l'asse è uguale a vx"},{"@type":"Declare","tpe":"String","name":"fx","id":"id_34300b29_3e2a_4abf_9455_afd93ff0bb13","initValue":null},{"@type":"Assign","name":"fx","id":"id_d920662a_c12d_4ae5_9ff2_d91a4eefaf31","value":"vx"},{"@type":"Declare","tpe":"String","name":"fy","id":"id_811dbac7_faee_4c96_8adf_d957d46d4811","initValue":null},{"@type":"Assign","name":"fy","id":"id_963658f7_c830_48ce_83bb_26e6d55abd44","value":"(1-delta)/4*a"},{"@type":"Comment","id":"id_c1af3a8a_54d6_4773_ae1a_59541fe118ee","text":"il fuoco ha coordinate (fx;fy)"},{"@type":"Declare","tpe":"String","name":"direttrice","id":"id_a461c707_b9b5_48b0_b3ab_0e3b87b1aaf2","initValue":null},{"@type":"Assign","name":"x","id":"id_f6bc4a0b_380a_402b_9051_33ad9e9e0b99","value":"-(1+delta)/4*a"},{"falseBlock":{"statements":[{"@type":"Comment","id":"id_cd338247_2d76_4d56_86f1_9017460d2324","text":"la parabola non ha intersezioni con l'asse x"}],"id":"id_07c948cb_bc90_4bc3_9f39_6910a167c0cf"},"trueBlock":{"statements":[{"falseBlock":{"statements":[{"@type":"Assign","name":"x1","id":"id_b14c5ccc_938c_49a4_8ae9_6b06b360ff3d","value":"-b-√(delta)/4*a*c"},{"@type":"Assign","name":"x2","id":"id_f7030695_7e0d_4adb_bebd_6734f7e78a0d","value":"-b+√(delta)/4*a*c"},{"@type":"Comment","id":"id_c238800b_0cc3_457a_a240_b85b642e3fcf","text":"la parabola è secante all'asse x nei punti x1 e x2"}],"id":"id_5b578268_75cd_473c_a21c_fec67be21bfe"},"trueBlock":{"statements":[{"@type":"Assign","name":"x1","id":"id_48675416_30a1_45f5_94da_bd4799a13845","value":"x2"},{"@type":"Comment","id":"id_240d2ab2_9964_467f_b3dc_f095355688a1","text":"la parabola è tangente all'asse x nel punto x12"}],"id":"id_54912ebc_bbad_462b_877c_33d93d311617"},"condition":"d==0","@type":"If","id":"id_393dd0a4_18bf_47a1_b933_413d63bcd84c"}],"id":"id_ef6727c8_00f3_42b2_83b6_ef94db37c0ac"},"condition":"d>=0","@type":"If","id":"id_1e2c6b73_1da1_4a67_9de7_8de31d9d9b47"},{"@type":"Return","id":"id_11097757_8a28_480a_8d32_b59372107215","maybeValue":null}],"parameters":[]},"id":"id_7c523624_cad3_485e_9f17_173430aaec05","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"java","showGenCode":true},"version":"0.2","revision":853}