sweet merciful crap.
I'm going to make a few assumptions so that we can use actual numbers instead of variables. These assumptions will include 2 values that are far apart, so any differences will be more noticeable.
Assumption 0: no grazing hits and no misses
Assumption 1: Average base damage is either 10 or 100
Assumption 2: Average Imbue damage before scaling is either 10 or 100
Assumption 3: Imbue damage scales at 100%, 150%, or 200% Ranged Power (as they do in game)
Assumption 4: Ranged Power is either 10 or 100
Assumption 5: Doubleshot is either 10 or 100
Assumption 6: Crit profile is either 20/x2 or 17/x5 (and crits only affect base damage, not imbues, as it is in game)
The formula will be (A1 * A4 * A5) + (A6) + (A2 * A3 * A5)
That means: (base damage scaled with doubleshot and ranged power) + (extra damage from crits that affect only base damage) + (imbue damage that scales with imbue scaling and doubleshot)
Just to be thorough I put that into excel to quickly compare all iterations of those assumptions/variables.
I'm not going to list every combination, but here is one example comparison:
with 10 base damage, 100 base imbue damage at 100% scaling, 100 ranged power, 100 double shot, and a 20/x2 crit profile, your final damage will be 242.
Change that to 100 base damage, 10 imbue damage scaling at 100%, and all else the same (100 ranged power, 100 doubleshot, 20/x2 crit), final damage will be 440.
The difference is that the crit applies to the base but not the imbue.
However, if you use the formula provided by the AI above, both scenarios will result in the exact same final totals because it's multiplying/scaling crits to all variables. That is obviously not how things work in game, and assuming it is correct will lead you to incorrect conclusions. A build made with those assumptions may work, but it will not be accurate or as efficient as it could be if correct assumptions were used.
Now lets check some other variations with a proper (not ai generated) formula.
100 base damage and 100 imbue damage, imbue scaling at 200% ranged power, 17-20/x5 crit profile. Lets check the extremes of ranged power and doublestrike:
having only 10 ranged power and 100 doublestrike, you end up with a final of 796.
Swap them to be 100 ranged power and 10 doublestike, you end up with a final of 616.
Now lets take these results and add a single point of ranged power vs a single point of doubleshot.
First takes the 10 rp and 100 ds = 796. change it to 11 rp, and it bumps up to 799.6
If we instead change it to 10 rp and 101 ds, it goes up to 799.98
So in that specific setup, 1 RP = 3.6, while 1 DS = 3.98
How about the other setup? That being 100 rp and 10 ds, resulting in a total of 616.
Add one RP to make it 101 rp and 10 ds, you get 617.98
Instead add one DS to make it 100 rp and 11 ds, you get 621.6
So in that specific setup, 1 RP = 1.98, while 1 DS = 5.6
As you can see, finding the exact breakpoints between when ranged power vs doubleshot provides more value, or even what the value of 1 point even is, is a little bit complicated, as base damage, imbue dice, imbue scaling, current RP and DS values, and crit profiles, all affect the maths differently.
edit: and just to have one more example, I'll take that first setup and add 1 rp and 1 ds to see their value in those specific setups.
10 base, 100 imbue @ 100% scaling, 20/x2 crit, 100 rp and 100 ds = 242
101 rp and 100 ds = 242.21
100 rp and 101 ds = 243.21
1 rp = 0.21, while 1 ds = 1.21
vs
100 base, 10 imbue @ 100% scaling, 20/x2, 100 rp and 100 ds = 440
101 rp and 100 ds = 442.1
100 rp and 101 ds = 442.2
1 rp = 2.1, while 1 ds = 2.2
lets take this last example, and change the crit profile to 17-20/x5
10 base, 100 imbue @ 100%, 17/x5. 100 of both = 272
+1 rp = +0.36
+1 ds = +1.36
100 base, 10 imbue @ 100%, 17/x5, 100 of both = 740
+1 rp = +3.6
+1 ds = +3.7
(apologies for the edits and the gradual increase of shortform, I've spent too much time here already)
(also I was going cross-eyed typing this out, so I may have made egregious errors at some point)