by @Marco Latini Fork
{"functions":[],"name":"Malvine_Parabola","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":"delta","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":"Input","name":"a","id":"id_8526b181_fa25_4cf3_bbf1_a98cf95cb12a","prompt":"coefficiente variabile di secondo grado"},{"@type":"Input","name":"b","id":"id_c4d0939f_7c5b_417f_8481_b25366533a90","prompt":"coefficiente variabile di primo grado"},{"@type":"Input","name":"c","id":"id_e2cf19d7_3ce8_4db5_802e_c553d7a7a065","prompt":"coefficiente termine noto"},{"@type":"Assign","name":"delta","id":"id_f8acf4b4_90c5_41bd_85b9_7d5e913fc77b","value":"b*b-4*a*c"},{"@type":"Declare","tpe":"String","name":"equazione","id":"id_b6b06e3a_3e6b_481a_b1fe_5056eae58c87","initValue":null},{"@type":"Assign","name":"equazione","id":"id_63c081ee_e4ed_42f9_a7a0_057451c03c39","value":"\"y = \"+a+\"x^2 + \"+ b +\"x +\"+c"},{"@type":"Declare","tpe":"Real","name":"vx","id":"id_fafe31fe_0b8c_4e9b_97a1_6e9adfb350ac","initValue":null},{"@type":"Assign","name":"vx","id":"id_d7ed84da_6856_4eac_97b6_5e542c287249","value":"-b/(2*a)"},{"@type":"Declare","tpe":"Real","name":"vy","id":"id_23f9f938_9d69_4c07_a409_d2e7a1547160","initValue":null},{"@type":"Assign","name":"vy","id":"id_c9bd99d7_59fa_4006_b7fe_f4759fca118b","value":"-delta/(4*a)"},{"@type":"Declare","tpe":"Real","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":"Real","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":"Declare","tpe":"Real","name":"direttrice","id":"id_a461c707_b9b5_48b0_b3ab_0e3b87b1aaf2","initValue":null},{"@type":"Assign","name":"direttrice","id":"id_f6bc4a0b_380a_402b_9051_33ad9e9e0b99","value":"-(1+delta)/(4*a)"},{"newline":true,"@type":"Output","id":"id_ead39628_45eb_4df7_8270_a06c7adcef46","value":"\"Studiamo la parabola di equazione \"+ equazione"},{"newline":true,"@type":"Output","id":"id_6a7199fd_c727_41e8_af17_94aef830822b","value":"\"il vertice ha coordinate V=(\"+ vx +\";\"+ vy +\")\""},{"newline":true,"@type":"Output","id":"id_fc6390a3_33f2_4557_a8fe_e79af65f3ae9","value":"\"l'asse di simmetria ha equazione y = \"+vx"},{"newline":true,"@type":"Output","id":"id_d40d212e_991d_48da_97d0_9240adba9237","value":"\"il fuoco ha coordinate F=(\"+ fx +\";\"+ fy +\")\""},{"newline":true,"@type":"Output","id":"id_ac586a0b_af8b_421a_ba2d_1d07627e804f","value":"\"la direttrice ha equazione \"+ direttrice"},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_7238e409_df3e_4334_9fde_1be8a0e78e52","value":"\"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-sqrt(delta))/(2*a)"},{"@type":"Assign","name":"x2","id":"id_f7030695_7e0d_4adb_bebd_6734f7e78a0d","value":"(-b+sqrt(delta))/(2*a)"},{"newline":true,"@type":"Output","id":"id_b4d3cde5_4711_42ce_b767_e970b446c85b","value":"\"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_ffd434cb_9dd4_4329_9977_ef1dd205e21c","value":"-b/(2*a)"},{"newline":true,"@type":"Output","id":"id_a125cc47_c1ff_4348_bc7e_437133cbf6a2","value":"\"la parabola è tangente all'asse x nel punto \" + x1"}],"id":"id_54912ebc_bbad_462b_877c_33d93d311617"},"condition":"delta==0","@type":"If","id":"id_393dd0a4_18bf_47a1_b933_413d63bcd84c"}],"id":"id_ef6727c8_00f3_42b2_83b6_ef94db37c0ac"},"condition":"delta>=0","@type":"If","id":"id_1e2c6b73_1da1_4a67_9de7_8de31d9d9b47"},{"@type":"Return","id":"id_11097757_8a28_480a_8d32_b59372107215","maybeValue":null}],"parameters":[]},"id":"id_43d1d092_4bf8_43b7_a301_9d558633c042","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"c++","showGenCode":true},"version":"0.2","revision":1308}