Author Topic: Need a formula  (Read 2370 times)

0 Members and 1 Guest are viewing this topic.

daron

  • Guest
Need a formula
« on: July 14, 2005, 11:28:15 AM »
I have this
Code: [Select]
(/ (/ (* length width height) 1728) 27) = Cubic Yd
Let's say I have the length, height and Cubic Yd. How do I need to rearrange it to get width?

tcdan

  • Guest
Need a formula
« Reply #1 on: July 14, 2005, 11:53:54 AM »
I don't know LISP too well, but wouldn't it just be
Code: [Select]
(/ (/ (* Cubic Yd 1728 27) length) height) = width

Crank

  • Water Moccasin
  • Posts: 1503
Need a formula
« Reply #2 on: July 14, 2005, 12:14:03 PM »
Quote from: tcdan
I don't know LISP too well, but wouldn't it just be
Code: [Select]
(/ (/ (* Cubic Yd 1728 27) length) height) = width

or:
Code: [Select]

(setq width (/ (* Cubic_Yd 1728 27)(* length height)))
Vault Professional 2023     +     AEC Collection

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Need a formula
« Reply #3 on: July 14, 2005, 12:14:21 PM »
Be sure to use reals.
Code: [Select]
(/ (/ (* length width height) 1728.0) 27.0) = Cubic Yd
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Crank

  • Water Moccasin
  • Posts: 1503
Need a formula
« Reply #4 on: July 14, 2005, 12:16:27 PM »
Quote from: CAB
Be sure to use reals.
...

Good point!
Code: [Select]

(setq width (/ (* Cubic_Yd 46656.0)(* length height)))
Vault Professional 2023     +     AEC Collection