Shop OBEX P1 Docs P2 Docs Learn Events
Natural Log (ln) calculation on BS2e — Parallax Forums

Natural Log (ln) calculation on BS2e

DocNastyDocNasty Posts: 1
edited 2006-11-23 07:24 in BASIC Stamp
Hi.· I'm working on a senior design project·for Tulane's EECS department, and I've run into a big hangup right in the home stretch.

I'm trying to convert frequency back into voltage by using the PULSIN command.· I've done a very smooth job of creating a very clean, high pulse
that's representative of one full wavelength.· I'm getting steady results for frequency, however I'm having trouble converting it back.

x = frequency
y = voltage

I've come up with an equation, and I know how to handle the negatives and decimal points.· The problem is the natural log.· Is there a trick in PBasic to do ln?·

y = -6.4836Ln(x) + 44.361


Please help!

-Michael

Comments

Sign In or Register to comment.