FANDOM


Line 3: Line 3:
 
Rare goods can be found throughout the galaxy and increase in price based upon how far away from the originating system the goods are.
 
Rare goods can be found throughout the galaxy and increase in price based upon how far away from the originating system the goods are.
   
The price increase can be best approximated by the following function, illustrated in the graphs below. Note that the variables p0, p1, p2, and p3 differ for various commodities, see the [https://forums.frontier.co.uk/showthread.php?t=66538&page=3&p=1180390&viewfull=1#post1180390 thread] for details.<ref>[https://forums.frontier.co.uk/showthread.php?t=66538 Distance Behavior of Rare Commodities (The Quest of the Lavian Brandy) by p2k]</ref>
+
The price increase can be best approximated by the following function, illustrated in the graphs below. Note that the variables p0, p1, p2, and p3 differ for various commodities, see the [https://forums.frontier.co.uk/showthread.php?t=66538&page=3&p=1180390&viewfull=1#post1180390 thread] for details.<ref>[https://forums.frontier.co.uk/showthread.php?t=66538 Distance Behavior of Rare Commodities (The Quest of the Lavian Brandy) by p2k]</ref>
   
 
<code>SP(x) = p0 + p1 * [http://mathworld.wolfram.com/Erf.html erf]((x - p2) / p3)</code>
 
<code>SP(x) = p0 + p1 * [http://mathworld.wolfram.com/Erf.html erf]((x - p2) / p3)</code>
Line 10: Line 10:
   
 
<code>SP(x) = p0 + p1 * [http://mathworld.wolfram.com/InverseTangent.html tan<sup>&minus;1</sup>]((x - p2) / p3)</code>
 
<code>SP(x) = p0 + p1 * [http://mathworld.wolfram.com/InverseTangent.html tan<sup>&minus;1</sup>]((x - p2) / p3)</code>
==<code>See also</code>==
 
<code>[[List of Rare Commodities]]</code>
 
   
 
<gallery>
 
<gallery>

Revision as of 10:53, January 15, 2015

Rare goods increase in value the further you travel from their point of purchase.

— In-Game Description

Rare goods can be found throughout the galaxy and increase in price based upon how far away from the originating system the goods are.

The price increase can be best approximated by the following function, illustrated in the graphs below. Note that the variables p0, p1, p2, and p3 differ for various commodities, see the thread for details.[1]

SP(x) = p0 + p1 * erf((x - p2) / p3)

Note that if your environment does not have an erf() function for you to use, you can use a trigonometric function instead at the cost of a bit more error - but the result should still be useful:[2]

SP(x) = p0 + p1 * tan−1((x - p2) / p3)

References

  1. Distance Behavior of Rare Commodities (The Quest of the Lavian Brandy) by p2k
  2. Distance Behavior of Rare Commodities (The Quest of the Lavian Brandy) by p2k (post #34)

All items (142)

A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
R
S
T
U
V
W
X
Y
Z
Community content is available under CC-BY-SA unless otherwise noted.