Variable Coordinate Calculator
Solve a coordinate built from variables and math, then map every possibility.
Enter a coordinate with unknowns as variables and bracketed math, for example N 51 3[A].[B]42 W 000 0[A].[B*C]. Each variable can be a fixed value, a range like 1-9, or a set like 0;5;9. Every combination is calculated, parsed as a coordinate, and mapped. Capital N, E, S, and W are treated as hemispheres, not variables.
A bracket inside a bracket is worked out first, and a power binds tighter than a minus sign ([-2^2] is -4). A bracket that holds only a variable prints it exactly as typed, so N51 30.[A] with A = 042 is N51 30.042, while [A+1] is a number. A range such as 00-09 keeps its zeros. A line with no brackets that already reads as a coordinate is used as typed. A result is only plotted when it is a whole coordinate: a latitude alone such as N51 30.042 is refused, and the short formats are accepted only when long enough to be exact to about a kilometer (geohash 6 characters or more, NAC 3 or more on each half, Maidenhead 8 or more). One range may hold at most 1,000,000 values and all the ranges together at most 2,000,000.
Anything inside [ ] is evaluated as math. One coordinate per line.
Variables you use (A, B, C ...) will appear here once detected.
Formula reference
Use any letter or name. Set a fixed value (A = 3), a range (A = 1-9), or a set (A = 0;5;9). Ranges and sets expand to every combination.
Wrap math in brackets: [A+B], [A*C+D], [(A+B)*2]. Outside brackets, digits and letters stay literal so 3[A] with A=4 becomes 34.
+ - * / ^ % ! sqrt nrt abs floor ceil round sgn min max sin cos tan (and deg variants) log ln cs csi (cross-sum) bww av (word value) len mod modpow modinv gcd lcm and or xor shl shr 0x 0o 0b (hex/octal/binary) pi phi sqrt2 sqrt3 sqrt5