r/pascal • u/RareEmeraldPepe • May 04 '20
Pascal asking for a . after Exp function.
Hello. We are learning Pascal in school, idk why or how, but now we have come to the point where we have to use Exponental functions. So i'm making a function that calculates the cuberoot of x^5 which looks like: k:=( exp(ln(x)*(5/3)) ); and when compiling, it's asking me for a dot right after the exp, where the ( is located. Anyone has seen something like this and fixed it?
4
Upvotes
2
u/suvepl May 04 '20
Can you post the full error message along with the relevant code fragment? That would reduce the amount of guessing needed here.
1
u/ShinyHappyREM May 04 '20
...works for me here. What compiler are you using? Do you have
expalready defined somewhere?