Resend my activation email : Register : Log in 
BCF: Bike Chat Forums


Rasing to the power

Reply to topic
Bike Chat Forums Index -> Dear Auntie BCF...
View previous topic : View next topic  
Author Message

orac
World Chat Champion



Joined: 25 Sep 2011
Karma :

PostPosted: 08:33 - 04 May 2014    Post subject: Rasing to the power Reply with quote

I am laying down some theory for a new project in relation to HDR photography, unfortnatly it relates to some maths that is a little beyound me and cant be done natively on the prototype system i an thinking of using

the system will start by calculating the current (or central) EV value from the metered data on the camera

EV = exposure value
T = shutter time in seconds
F = fstop as displayed by camera
ln = natural log

EV = log_2 F^2/T

however the processor only does either natural log or base 10
so the converted forumla for finding EV

EV = ln (F^2/T) / ln(2)
(this works in excel and on hardware that will be used)

once that value has been found the EV wll be added and subtracted from to obtain new shutter time (T) for images either side.

to derive T
T = F^2/2^EV
(this sum works in excel)

It is possible foor EV to be both nagative an a decimal. If EV was going to be neither negative or a decimal i would just multiply 2 to EV number of time - this seem to be tricky with a decimal

Resolving 2^EV is the last hurdle that i am facing before i can start laying down code and hardware for controlling the camera shutter so any help or idea will be apreciated.
The processor can raise power_e (where e is 2.7182818)and power_10, so conversion from them maybe possible
____________________
Current rides - 2016 Triumph Street Triple Rx, 1994 Suzuki Bandit 400 VM, TGB 204 Classic 125cc
"with nothing left to lose, there is everything to gain. It's not the size of the dog in the fight, it's the size of the fight in the dog"
 Back to top
View user's profile Send private message You must be logged in to rate posts

lihp
World Chat Champion



Joined: 22 Sep 2010
Karma :

PostPosted: 09:10 - 04 May 2014    Post subject: Reply with quote

What is tricky?

I assume you're thinking it is tricky due to the amount of numbers after the decimal place?

If this is the case, you're either going to have to lose some accuracy or work in surd form.
 Back to top
View user's profile Send private message You must be logged in to rate posts

orac
World Chat Champion



Joined: 25 Sep 2011
Karma :

PostPosted: 09:43 - 04 May 2014    Post subject: Reply with quote

rounding to remove the decimal places can create a rather large cap between what the shutter tome should be and will be.

my understanding of surd must have been lost at one time. as an example, i was out this week and toook some shots with an EV of 11.70044, or lets say 11.7 - pretty sure this number can not be simplified (it sqarue root is 3.42...) so it is already a surd

unless i have missapplied what i know or gotten mixed up with somethng entirely different. bare in mind i only did a GCSE in maths, i have already outreached what i was taught at school
____________________
Current rides - 2016 Triumph Street Triple Rx, 1994 Suzuki Bandit 400 VM, TGB 204 Classic 125cc
"with nothing left to lose, there is everything to gain. It's not the size of the dog in the fight, it's the size of the fight in the dog"
 Back to top
View user's profile Send private message You must be logged in to rate posts

barrkel
World Chat Champion



Joined: 30 Jul 2012
Karma :

PostPosted: 10:00 - 04 May 2014    Post subject: Reply with quote

Using your function names:

x^y = power_e(ln(x) * y)

So 2^x = power_e(ln(2) * x)
____________________
Bikes: S1000R, SH350; Exes: Vity 125, PS125, YBR125, ER6f, VFR800, Brutale 920, CB600F, SH300x4
Best road ever ridden: www.youtube.com/watch?v=s2MhNxUEYtQ
 Back to top
View user's profile Send private message You must be logged in to rate posts

orac
World Chat Champion



Joined: 25 Sep 2011
Karma :

PostPosted: 10:43 - 04 May 2014    Post subject: Reply with quote

barrkel wrote:
Using your function names:

x^y = power_e(ln(x) * y)

So 2^x = power_e(ln(2) * x)


Just to make sure i have this right

2^EV = 2.718^(ln(2)*EV)

This should be the sum i can plug into excel for generating test numbers, and then into my hardware for running the maths.

so the final sum should look like:
T = F^2/2.718^(ln(2)*EV)
____________________
Current rides - 2016 Triumph Street Triple Rx, 1994 Suzuki Bandit 400 VM, TGB 204 Classic 125cc
"with nothing left to lose, there is everything to gain. It's not the size of the dog in the fight, it's the size of the fight in the dog"
 Back to top
View user's profile Send private message You must be logged in to rate posts
Old Thread Alert!

The last post was made 12 years, 198 days ago. Instead of replying here, would creating a new thread be more useful?
  Display posts from previous:   
This page may contain affiliate links, which means we may earn a small commission if a visitor clicks through and makes a purchase. By clicking on an affiliate link, you accept that third-party cookies will be set.

Post new topic   Reply to topic    Bike Chat Forums Index -> Dear Auntie BCF... All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Read the Terms of Use! - Powered by phpBB © phpBB Group
 

Debug Mode: ON - Server: biskey (www) - Page Generation Time: 0.05 Sec - Server Load: 0.27 - MySQL Queries: 14 - Page Size: 44.7 Kb