Someone:
>> b) I have the function Sqr(x), that gives me the BASIC equivalent of
>> x^2; how can I do a x^n(n<>2) in TP?
AFAIK, there's o predefined function for it - you'll have to write one
yourself...
Someone else:
>I don't know anything about Pascal, but shouldn't Sqr(x) be same that
> x^.5 :-)
Nope, that's Sqrt(x)
The third:
>Suppose you want: A=x^n ==> n*ln(X)=ln(A) ==> A=exp(n*ln(X)).That's it.
Which is both inaccurate and extremely slow :-) The formula is correct,
but because of the way in which exp() and ln() get their results, you're
bound to get rounding errors...
Eric
****
MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put
in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the
quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)
****