{"functions":[],"name":"Grici - La parabola","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_f1d86a99_75cc_4747_88e9_510ac9e57962"},{"@type":"Declare","tpe":"Real","name":"a","id":"id_83af569c_8f46_4884_9394_d370382b5201","initValue":null},{"@type":"Declare","tpe":"Real","name":"b","id":"id_43ea001a_045f_42ce_af15_a45331c86309","initValue":null},{"@type":"Declare","tpe":"Real","name":"c","id":"id_45767f5c_2edf_419f_92f1_c5adf0a13200","initValue":null},{"@type":"Input","name":"a","id":"id_f964fe4f_8e64_4f39_9330_21f7bec52a5d","prompt":"Coefficiente del termine di secondo grado:"},{"@type":"Input","name":"b","id":"id_ca6f5c09_9333_43c2_9c53_2dc9c7d23af3","prompt":"Coefficiente del termine di primo grado:"},{"@type":"Input","name":"c","id":"id_e4cd1183_cc21_439c_8fbd_cb3f7d942d3a","prompt":"Termine noto:"},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_06ff1da8_983c_4f9d_972c_4d3a4bd140a5","value":"\"Questa espressione non contiene termini con un'incognita\""}],"id":"id_e0cf6931_4779_4ba7_be62_5b141614df87"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_6cca69e9_4c6d_488a_9aad_ac45b1fee37c","value":"\"Questa non è una parabola ma una retta di equazione:\""},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_8006126a_0bda_4084_a854_0b64df918075","value":"\"\" + b + \"x - \" + abs(c) + \" = 0\""},{"newline":true,"@type":"Output","id":"id_df1fa5b1_d275_4fd7_b51d_745aa6bb2405","value":"\"x = \" + (-c/b)"}],"id":"id_e3d96f23_5356_4f4c_9988_a8ba7a42d9bc"},"trueBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_5947a7f6_3a53_415c_9e38_61084e910f2d","value":"\"\" + b + \"x + \" + c + \" = 0\""},{"newline":true,"@type":"Output","id":"id_f3fe2f79_ab0c_464d_af9b_1f706cfafec4","value":"\"x = \" + (-c/b)"}],"id":"id_f5238f63_6795_448f_948d_3d86e005c8dd"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_073806e8_edfc_4484_bb5f_1051bcec2e17","value":"\"\" + b + \"x = 0\""},{"newline":true,"@type":"Output","id":"id_1877bae0_23bf_4a32_bde2_bb936658a58f","value":"\"x = 0\""}],"id":"id_bd3b6762_cb2f_45b0_b1a6_61f071d179d7"},"condition":"c == 0","@type":"If","id":"id_0096d13e_df44_48e8_a9c3_8c73670fc4cb"}],"id":"id_597a3aff_a1b3_45f1_8864_3a385823798d"},"condition":"c >= 0","@type":"If","id":"id_0a610079_aa12_47b9_97ab_e9fbef3a0a04"}],"id":"id_bcf51d01_7a38_48ca_8729_16d394cfa7b9"},"condition":"b != 0","@type":"If","id":"id_27867fb3_eeb5_4645_86f0_14db3086c725"}],"id":"id_d6ccfdcc_b517_4954_b405_fd94e4e5d2a9"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_f7c4ffd3_6c3f_4fc8_b0ee_1cb8cac2828d","value":"\"Questa è una parabola con equazione:\""},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_8e2db721_730b_43d1_8fe5_b76b928531e2","value":"\"\" + a + \"x^2 - \" + abs(b) + \"x - \" + abs(c) + \" = 0\""}],"id":"id_6d300155_b152_4564_8d4b_0ade4f1dc10c"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_f25e9be5_63a6_4aac_9f36_ce6e44318567","value":"\"\" + a + \"x^2 - \" + abs(b) + \"x + \" + c + \" = 0\""}],"id":"id_6cb1076d_5393_49b3_a9a7_cd1ad7cc8b8c"},"condition":"c > 0","@type":"If","id":"id_831647ab_a320_4a05_9128_29f69870170c"}],"id":"id_8109b1fd_7885_4498_b82c_bf2470abb36b"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_9b5a2747_d00e_434f_8a71_c4622aeb0ff8","value":"\"\" + a + \"x^2 - \" + abs(b) + \"x = 0\""}],"id":"id_1859e702_6a77_4b5e_b683_31e2a0136387"},"condition":"c == 0","@type":"If","id":"id_2a8a19a5_7793_40c0_81e4_77a9ca173b27"}],"id":"id_de3e9ac3_24e5_47f1_a0b3_828a9dd880bb"},"trueBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_eff2dbe1_00b0_4bb0_b345_4ad1d31e4dcd","value":"\"\" + a + \"x^2 + \" + b + \"x - \" + abs(c) + \" = 0\""}],"id":"id_fe12cbf1_e40f_4fc9_bf7a_f7fabb9e524e"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_db108cbb_f926_4afa_95e8_f7c8c0beaec0","value":"\"\" + a + \"x^2 + \" + b + \"x + \" + c + \" = 0\""}],"id":"id_c9a6ba13_a141_45a8_9ea3_f215fb067dae"},"condition":"c > 0","@type":"If","id":"id_8dd904ac_5a61_4459_b22c_01b9e6a34eca"}],"id":"id_d74a0268_f448_4818_af25_7835f8aa2a9d"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_355510c4_e8d3_4281_b3df_fb9a61481042","value":"\"\" + a + \"x^2 + \" + b + \"x = 0\""}],"id":"id_15731f8a_9af6_4579_b6ec_611b38ac65a3"},"condition":"c == 0","@type":"If","id":"id_d18cbed9_dd48_4a1f_b5a3_88573f90f9f2"}],"id":"id_c4841f98_dd2c_4a48_8a77_e986bbd261e0"},"condition":"b > 0","@type":"If","id":"id_b021e1bd_6e94_4426_899c_8c3ff88d2bb3"}],"id":"id_3a90e797_f36b_46a7_82c2_8348f0634180"},"trueBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_ae6d555e_9d29_4056_ac9c_41841fbca974","value":"\"\" + a + \"x^2 - \" + abs(c) + \" = 0\""}],"id":"id_c98a0b1d_c154_4951_858f_36b7c1cb1b8e"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_0a0749d2_6d99_4461_afa2_c423336f932b","value":"\"\" + a + \"x^2 + \" + c + \" = 0\""}],"id":"id_232492cd_e358_47f3_a31c_e8b25049d505"},"condition":"c > 0","@type":"If","id":"id_f344aea2_7d5c_4dc2_8f31_d1c82aea9fda"}],"id":"id_4a58345a_93a8_4ace_97da_2de3823c8b48"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_e692c8c1_a97f_4077_a7a2_40d2da1d256a","value":"\"\" + a + \"x^2 = 0\""}],"id":"id_f63103ec_2661_4cf1_b617_96b3c8e35808"},"condition":"c == 0","@type":"If","id":"id_39486e6f_34eb_40ba_9dec_2aea98741ed4"}],"id":"id_af275a22_5453_4d4e_a5ca_4795a090726b"},"condition":"b == 0","@type":"If","id":"id_011495b7_8f91_4496_840e_358d22adad59"},{"@type":"Declare","tpe":"Real","name":"delta","id":"id_918c2854_85cd_4377_a3c2_e19f908cd48d","initValue":null},{"@type":"Assign","name":"delta","id":"id_fcb65605_cfc5_41ef_9369_a139f2b94cff","value":"b*b-4*a*c"},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_e91a11e4_cc2e_4002_b74a_db685b038fbf","value":"\"La parabola non interseca l'asse delle ascisse\""}],"id":"id_7a884063_9047_4118_8991_cf457fb9e799"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_b27139ad_2970_47d6_aeb5_bd98886dc465","value":"\"La parabola interseca l'asse delle ascisse per:\""},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_aff90d50_09b5_4741_b67e_a1d9fe2adae3","value":"\"x1 = \" + (-b-sqrt(delta))/(2*a)"},{"newline":true,"@type":"Output","id":"id_c2a31acc_a445_4edf_92ea_3946991cdb2a","value":"\"x2 = \" + (-b+sqrt(delta))/(2*a)"}],"id":"id_d2c7a116_b6cb_4bf1_9a2e_82fedc58a592"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_12b9db08_45b9_44e2_8e7b_69b4715414fd","value":"\"x = \" + -b/(2*a)"}],"id":"id_ecc5103f_4063_461f_b505_d501154dbcd5"},"condition":"delta == 0","@type":"If","id":"id_9f743943_773c_4559_8719_bb73bb74778b"}],"id":"id_d5392b9f_469b_4f5c_ab34_9dfd6f8aa0e9"},"condition":"delta >= 0","@type":"If","id":"id_82d17763_ecb9_4d17_9e95_7f63e97bca3a"},{"@type":"Declare","tpe":"Real","name":"xv","id":"id_459359a3_8b8e_4e2a_8001_905df1074f5f","initValue":null},{"@type":"Declare","tpe":"Real","name":"yv","id":"id_baa333c1_a5a3_4477_9054_64db453fdd30","initValue":null},{"@type":"Assign","name":"xv","id":"id_c49ec080_b483_4837_8bf6_3b2028151594","value":"-b/(2*a)"},{"@type":"Assign","name":"yv","id":"id_f4f489ed_7c02_4cf5_a1c2_18ff9c847c16","value":"-delta/(4*a)"},{"newline":true,"@type":"Output","id":"id_387886dd_fa10_46af_b9a8_988f5109f21f","value":"\"Le coordinate del vertice della parabola sono:\""},{"newline":true,"@type":"Output","id":"id_933f5041_588e_48df_b8ac_41657051a4ed","value":"\"Xv = \" + xv + \"; Yv = \" + yv"},{"@type":"Declare","tpe":"Real","name":"xf","id":"id_25fdd19a_8300_4d08_aa88_6c0fa1519ab5","initValue":null},{"@type":"Declare","tpe":"Real","name":"yf","id":"id_dee2330a_538e_4484_9c67_93e722198af7","initValue":null},{"@type":"Assign","name":"xf","id":"id_35d05707_f1db_4259_9b10_6866b75ac210","value":"xv"},{"@type":"Assign","name":"yf","id":"id_3b612a5d_be6b_4319_aecd_8ff8b93bce84","value":"(1-delta)/(4*a)"},{"newline":true,"@type":"Output","id":"id_fe727bc9_91c8_4360_92b8_8db188ea2b1f","value":"\"Le coordinate del fuoco della parabola sono:\""},{"newline":true,"@type":"Output","id":"id_d8e6527f_b4de_408b_aaba_6fb5ad395dc4","value":"\"Xf = \" + xf + \"; Yf = \" + yf"},{"newline":true,"@type":"Output","id":"id_721d2c35_0ac2_4f54_ad89_f177e84f6697","value":"\"L'equazione dell'asse della parabola è:\""},{"newline":true,"@type":"Output","id":"id_3588d332_f90b_4d02_9d2c_ea563c3879bc","value":"\"asse: X = \" + xv"},{"newline":true,"@type":"Output","id":"id_0cd9dac9_7a66_4dd4_8a9a_47b09f8ccb8a","value":"\"L'equazione della direttrice della parabola è:\""},{"newline":true,"@type":"Output","id":"id_c16cde53_b4ed_4d40_a36a_cfd9bdbc186a","value":"\"d: Y = \" + (-(1+delta)/(4*a))"}],"id":"id_53bd8ba2_5c24_4164_9eba_f722877c9614"},"condition":"a != 0","@type":"If","id":"id_03c40042_dff7_4c01_9350_41d866b200d0"},{"@type":"Return","id":"id_7d7e19b8_d2f4_402f_b397_27054fc2dda3","maybeValue":null}],"parameters":[]},"id":"id_94c6a079_178b_4024_86da_b9f0b99ce552","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"python","showGenCode":true},"version":"0.2","revision":2488}