LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

logarithm

I need to compute the exponential of a arbitary logarithm in CVI.
 
In the term x=aö  x and a is known.
Can not find a function the computes n 
I do find log functions on bases 2 and 10, but n in my case differ from that.
 
Anyone ?
Regards Per Borgvad
 
 
0 Kudos
Message 1 of 7
(3,183 Views)
This is a LabView forum, not CVI.
Anyway, let logn(x) be the logarithm of x, base n:
logn(x) = log(x)/log(n) = log10(x)/log10(n)
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 2 of 7
(3,175 Views)

At the wrong place at the right time.

Anyway I do not follow, let me rephase :

(p0/p1) - (p0/p2) = a   known value

x = (dv/v)^n   also a known value

n= Help me out ?        

0 Kudos
Message 3 of 7
(3,165 Views)
Sorry I'm not catching you. You mean that x is known? What are the variables here? And what's the relation between the two equations - they don't share any term...
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 4 of 7
(3,152 Views)
I will make a guess for 2nd eq: you know x and (dv/v), you want to know n:

n = logbasedv/v (x) = log(x)/log(dv/v) = log10(x)/log10(dv/v)

is this what you need?
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 5 of 7
(3,144 Views)

Thank you for your respons.

To clearify my problem

(p0/p1)-(p0/p2) = (dv/v)^n

p0,p1,p2,dv and v are known.

This is an hydraulic accumulator calculation where the intention is to see the effect

on n by varying the others.

Still n= ???

Regards Per

0 Kudos
Message 6 of 7
(3,140 Views)
ok I understand now; the answer is in message 5, replacing x with (p0/p1)-(p0/p2):

n = log(
(p0/p1)-(p0/p2))/log(dv/v)
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 7 of 7
(3,118 Views)