definition 1:  to invent, plot, scheme, or devise artfully, especially with malicious intent.
example:  He sat alone in the bar, machinating his revenge.

See the full entry

Quotation From Literature

So he ascended the door step, and paid a visit of curiosity… and looked on the snorting image of his old foe, and the bandaged head, spell-bound and dreamless, that had machinated so much busy mischief against his own medical sovereignty and the rural administration of Nutter. -Sheridan Le Fanu, The House by the Churchyard