Group Abstract Group Abstract

Message Boards Message Boards

0
|
9.3K Views
|
4 Replies
|
1 Total Like
View groups...
Share
Share this post:

[EIWL] Solving problems in Chapter 7 of EIWL Book by Stephen Wolfram

Posted 10 years ago
POSTED BY: D P
4 Replies
Posted 10 years ago

Hey, I just found the complete solutions to all the questions in the book!

https://www.wolfram.com/language/elementary-introduction/answers-to-exercises.html

POSTED BY: D P
Posted 10 years ago

Now I am stuck on 7.8.

enter image description here

Table[{Range[x], Hue[x]}, {x, 0, 1, 0.1}] gets the right hues, but there are no numbers. Table[Range[x], {Hue[x], {x, 0, 1, 0.1}}] doesn't work. Table[Hue[Range[x]], {x, 0, 1, 0.1}] doesn't work.

POSTED BY: D P
Posted 10 years ago
(*Generates table of hues from 0 to 1 in steps of 1/20*)
Table[
 Hue[x], {x, 0, 1, 1/20}]
(*Blends yellow with each hue in table*)
Table[
 Blend[{Yellow, Hue[x]}], {x, 0, 1, 1/20}]
(*Example code from blend documentation*)
Graphics[
 Table[{Blend[{Red, Blue}, x], Disk[{8 x, 0}]}, {x, 0, 1, 1/8}]]
(*Putting it all together*)
Graphics[
 Table[{Blend[{Yellow, Hue[x]}], Disk[{8 x, 0}]}, {x, 0, 1, 1/20}]]
POSTED BY: v z
Posted 10 years ago

V Z, thanks for your reply.

This is the solution(from your reply):

Table[ Blend[{Yellow, Hue[x]}], {x, 0, 1, 1/20}]
POSTED BY: D P
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard