Post Reply 
Plus42 Equations, Preview Release
12-17-2021, 03:41 PM
Post: #139
RE: Plus42 Equations, Preview Release
Hi Thomas,

What would you recommend as the best approach for incorporating physical constants into equations? As a simple example, I'd like to store the relationship between wavelength and frequency:

nu=c/lambda

where of course nu is frequency and lambda is wavelength and c is the speed of light. Plus42 lets me store the speed of light as an equation:

c:300000_"km/s"

however I'm not sure how to incorporate this constant into other equations. For example, I can imagine either of these being the appropriate syntax:

nu(lambda):c/lambda
nu=c/lambda

However in both cases the speed of light defined earlier is not being used. I could certainly include the physical constant directly into the equation:

nu=300000_"km/s"/lambda

However it would be very handy to be able to refer to physical constants symbolically.

Thanks,

Bob
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Plus42 Equations, Preview Release - roberto_abraham - 12-17-2021 03:41 PM



User(s) browsing this thread: 3 Guest(s)