from typing import Tuple


def scaleTupleByTuple(t: Tuple[float, ...], v: Tuple[float, ...]) -> Tuple[float, ...]:
    """
    Scale the elements of the tuple t by the corresponding elements of tuple v.
    The length of the t and v must be the same
    """
    # print(f'scaleTupleByTuple: t={t} v={v}')
    assert len(t) == len(v)
    return tuple(et * v[i] for i, et in enumerate(t))