FANDOM


(explanatory link for erf() function - can't speak for the validity of the other formula components)
(reformatted, included alternate formula, and some for of explanation for the variables.)
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 this function <code>SP(x) = p1 + p2 * [http://mathworld.wolfram.com/Erf.html erf]( ( x * p3) / p4)</code> illustrated in the graphs below<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>
  +
  +
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:<ref>[https://forums.frontier.co.uk/showthread.php?t=66538&p=1179044&viewfull=1#post1179044 Distance Behavior of Rare Commodities (The Quest of the Lavian Brandy) by p2k (post #34)]</ref>
  +
  +
<code>SP(x) = p0 + p1 * [http://mathworld.wolfram.com/InverseTangent.html tan<sup>&minus;1</sup>]((x - p2) / p3)</code>
  +
 
<gallery>
 
<gallery>
 
File:Lavian_Brandy_Price_Increase.png
 
File:Lavian_Brandy_Price_Increase.png
Line 10: Line 10:
   
 
==References==
 
==References==
<references/>
+
<references />
 
[[Category:Commodities]]
 
[[Category:Commodities]]
 
[[Category:Zeessze Ant Grub Glue]]
 
[[Category:Zeessze Ant Grub Glue]]

Revision as of 22:17, December 27, 2014

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.