I have written code (in R) for my research project and am trying to publish a paper. Is there a good guide on how to take the concepts in my code and write them in a paper mathematically?
Specifically, I have two questions:
- How do I write that a number has to be a divisor? Is it: If a|b, then... where a is one of the divisors of b?
- If I have an array of indices v, how do I define the values of another array, G, at the index values $\bar{v}$? Is it: $G_{v}= \ $ or maybe $G_{\bar{v}}= \ $?
For example, in my project, objects exist along an axis Z. They occur only when a value is a divisor of the maximum value of an object along Z. Therefore, if $v_{max}$ occurs on Z, then vector $\bar{v}$ is all divisors of $v_{max}$. Also $\bar{v}$ represents the occurrences of all objects along the Z axis. The G values depend on the location of the occurrences, $\bar{v}$. G in the code is defined at these locations. In R, v is a vector and G is a vector. Defining G in R would read as:
G[seq(1,length(v)] = function(v)
G is therefore a function of v, but how would I reference G at a particular v?