Problem is that if the electricity is being produced by a gasoline or diesel motor (like in a train), the inefficiency of the source of the electricity has to be factored in.
“Problem is that if the electricity is being produced by a gasoline or diesel motor (like in a train), the inefficiency of the source of the electricity has to be factored in.”
Only the electricity is NOT produced by gasoline or diesel motor.