Mathematica 10: Problem with inserting values in formulas via FormulaData

Hello

FormulaData[] is really great. But I did’t find out, how to insert values for some variables.

formula = {"DistanceSpeedTime", "Acceleration", "InitialSpeed"};
given = {"d" -> Quantity[100, "Meters"],  "t" -> Quantity[10, "Seconds"],"v_i" ->Quantity[5, "Meters"/"Seconds"]};
FormulaData[formula, given]

I’m not able to insert values for variables with an intex in the notation, in my example above for the “InitialSpeed” v_i. I always get the Message “Unknown physical quantity specification” (see also Link).

Any idea how this works?

You should use

given = {"d" -> Quantity[100, "Meters"], "t" -> Quantity[10, "Seconds"], Subscript["v", "i"] -> Quantity[5, "Meters"/"Seconds"]} 

or type "v" Ctrl+_ "i" as the short form

Thanks a lot Karsten!

This helped me! I tried always “v Ctrl+_ i”, didn’t have the Idea, that “v” and “i” have to be two different Strings!

You can read Blanck(_) for more information about the meaning of _ in Mma.