If I execute
A = {Sin, Cos, Tan}
B = {ArcSin, ArcCos, ArcTan}
#[[1]]@#[[2]]@x & /@ Transpose[{A, B}]
the output is
{x,x,x}
which is to be expected. However, what I want is
{Sin[ArcSin[x]], Cos[ArcCos[x]], Tan[ArcTan[x]]}
Knowing that HoldForm[Sin[ArcSin[x]]]
outputs Sin[ArcSin[x]]
, I tried
A = {Sin, Cos, Tan}
B = {ArcSin, ArcCos, ArcTan}
HoldForm[#[[1]]@#[[2]]@x] & /@ Transpose[{A, B}]
but this gives me
{{Sin,ArcSin}[[1]][{Sin,ArcSin}[[2]][x]],{Cos,ArcCos}[[1]][{Cos,ArcCos}[[2]][x]],{Tan,ArcTan}[[1]][{Tan,ArcTan}[[2]][x]]}
Much like Zach Braff's morning routine, this output is plagued by too much Hold
.
How can I Hold
the form of the expression without Hold
ing the evaluation of Part
?