noun
Rare loanword from German Jammer. In ordinary Japanese, 嘆き or 悲嘆 is usually clearer; ヤンマ is best treated as a specialized or dictionary-register term.
from German Jammer
資料には、ドイツ語の Jammer に由来する「ヤンマ(嘆き)」と説明されている。
The material explains ヤンマ as 'lamenting,' derived from the German Jammer.