Buongiorno, ho una domanda abbastanza semplice:
esiste l’operazione di logaritmo in base 10? Da Xojo Dev Center sembra sia possibile solo il logaritmo naturale.
Grazie
Buongiorno, ho una domanda abbastanza semplice:
esiste l’operazione di logaritmo in base 10? Da Xojo Dev Center sembra sia possibile solo il logaritmo naturale.
Grazie
Public Function log10(x as Double) as Double
Return log(x) / log(10)
End Function
[code] Dim DT As Double 'intervallo di tempo
Dim log10(DT) As Double
DT = t_arrivo-t_partenza
log10(DT)=log(DT)/log(10)
Erre = Blog10(DT)+A 'Y = BLOG10(X) + A[/code]
Scusate, qual il problema di questa scrittura? mi dice “Arrays must be integers”
Public Function log10(x as Double) as Double
Return log(x) / log(10)
End Function
per favore aggiungi log10 come nuova funzione.
Non come array.