I am writing some functions that will solve problems for me and it requires the use of ln (natural log) but I can't seem to find it in swift and I've searched all over the internet but I still can't find the answer. Any help would be appreciated.
let rate : Double = log(finalAmount / initalAmount) / time
return rate
log should be ln.