help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

macro that uses local variables


From: Heime
Subject: macro that uses local variables
Date: Tue, 08 Aug 2023 00:32:25 +0000

I am using the rocket equation in this macro.  I want to change it such that
the arguments are set as local variables.  How does one code that ?

(defmacro booster-velocity-change
    (specific-impulse standard-gravity initial-mass final-mass)

  "Compute change of velocity using rocket equation."

  `(* (* ,specific-impulse ,standard-gravity)
        (log (mass-ratio ,initial-mass ,final-mass))) )





reply via email to

[Prev in Thread] Current Thread [Next in Thread]