I take it you haven't used Microsoft Windows?
Joking, joking...
They asked a computer how to minimize production expenses at a factory. The computer said: "Do not manufacture anything, expenses will be zero".
I believe it's been around since expert systems at least.
Robots are logical, but not rational.
What they aren't is moral, because of the orthogonality principle: you can't use facts and logic to discover correct moral beliefs. Morality is about values, goals, and the definition of "good". They must be provided to the robot by its creator, and those are things that are very hard to precisely describe in a way that is fully consistent with the speaker's intent in all possible scenarios, and agreeable by all other people.