Message Boards Message Boards

0
|
2397 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Error: objects of unequal length in ... cannot be combined

Posted 2 years ago
POSTED BY: Sanjay Singha
2 Replies
Posted 2 years ago

It means exactly what it says. The lists you are passing to Thread are not the same length.

Thread[f[{1, 2}]]
(* {f[1], f[2]} *)

Thread[f[{1, 2}, {3, 4}]]
(* {f[1, 3], f[2, 4]} *)

Thread[f[{1, 2}, 3]]
(* {f[1, 3], f[2, 3]} *)

Thread[f[{1, 2}, {3}]]
(* Thread::tdlen: Objects of unequal length in f[{1,2},{3}] cannot be combined. *)
POSTED BY: Rohit Namjoshi

Welcome to Wolfram Community!
Please make sure you know the rules: https://wolfr.am/READ-1ST
Your post is too vague. Please describe your subject extensively providing the code that caused this error message.

The rules explain how to format your code properly. If you do not format code, it may become corrupted and useless to other members. Please EDIT your post and make sure code blocks start on a new paragraph and look framed and colored like this.

int = Integrate[1/(x^3 - 1), x];
Map[Framed, int, Infinity]

You can also embed notebook or attach notebook.

enter image description here

POSTED BY: Moderation Team
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract