So, I am trying to learn vbscript and I bumped into a problem: type mismatch. I am unexperienced in vbs so I don't know where the mistake is. I am writing a program which asks for the sides of a right triangle and the angles, then the program gives me all of its data. So I need a code to get the angles by trigonometric functions(sin*α*=a/c and you know the "a" and the "c"). This is a part of the whole program (where the inverse trigonometric function is).Type in 0.8!(a=4,b=3,c=5):
u1 = "Type the quotient of a and c!"
f = "Math"
e =Inputbox(u1, f)
c = Sqr(-e^e+1)
a = Atn(e/c)
u = "α=" & a & vbCrLf
k = 0+64
msgbox u, k, f
If something is unclear please warn me. English isn't my native language so I don't know well the expressions of math. Best regards Matthew Szertel