func VerifyEquationHasProperSyntax(equation string) bool {
	syntax := regexp.MustCompile(`(\.|\+|\-|\*|\/|\d|\{|\}|\^|sin|cos|tan|sqrt|\(|\))+`)
	syntax.Longest()
	return syntax.FindString(equation) == equation
}
// use a regex of each acceptable symbol/character
// find longest match and verify it matches the input
use a regex of each acceptable symbol/character
find longest match and verify it matches the input
// use a regex of each acceptable symbol / character // find longest match and verify it matches the input
func VerifyEquationHasProperSyntax(equation string) bool {
	syntax := regexp.MustCompile(`(\.|\+|\-|\*|\/|\d|\{|\}|\^|sin|cos|tan|sqrt|\(|\))+`)
	syntax.Longest()
	return syntax.FindString(equation) == equation
}
func VerifyEquationHasProperSyntax ( equation string ) bool { syntax := regexp . MustCompile ( `(\.|\+|\-|\*|\/|\d|\{|\}|\^|sin|cos|tan|sqrt|\(|\))+` ) syntax . Longest ( ) return syntax . FindString ( equation ) == equation }
use a regex of each acceptable symbol/character
find longest match and verify it matches the input
use a regex of each acceptable symbol / character find longest match and verify it matches the input