blob: b33aab490f71ef416ae8252feb965be25cf00361 (
plain)
1
2
3
4
5
6
7
8
9
10
|
//4*x^2+6*x+9
clear;
clc;
close;
x=poly(0,'x');
p=4*x^2+6*x+9
mprintf("is not a complete square")
//the 1st and 3rd terms are squares of 3and 2x
//for complete square the middle term must be +(2*sqrt(4x^2)*sqrt(9))=+12x
|