Editing
Custom Expressions
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Index expressions == The custom expressions are calculated at each time step of the simulation, however there are some cases where it is useful to have access to earlier values of a given variable. This is possible using ''index expressions''. These use a square bracket syntax to specify the time (in seconds) for the variable you want. For example, the expression: m / m[0] would give the ratio of the current mass to the launch mass at time 0. Similarly, m - m[t-1] would give you the change in mass over the last second. You can specify any valid sub-expression inside the square brackets, the only restriction is that you can't nest another index/range expression inside the square brackets. When indexed expressions are calculated, interpolation is used to get the value exactly at the specified time, independent of the time steps of the simulation. If you specify a time smaller than 0 or greater than t then it will be clipped to 0 or t respectively. You can't access data that has not been calculated yet.
Summary:
Please note that all contributions to OpenRocket wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
OpenRocket:Copyrights
for details).
Do not submit copyrighted work without permission!
⧼questycaptcha-edit⧽
What is the name of the software this site is describing?
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information