Skip to content

Commit

Permalink
Merge pull request #524 from burenkov-anton/link
Browse files Browse the repository at this point in the history
Links at 2.37, 3.76
  • Loading branch information
fey committed Sep 1, 2020
2 parents 811380a + 1030df0 commit 9e479bc
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 10 deletions.
4 changes: 3 additions & 1 deletion resources/lang/en/exercises/2_37.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
'7' =>
"We can define the dot product as",
'8' =>
"Fill in the missing expressions in the following procedures for computing the other matrix operations. (The procedure accumulate-n is defined in exercise 2.36.)",
"Fill in the missing expressions in the following procedures for computing the other matrix operations. (The procedure accumulate-n is defined in exercise ",
'9' =>
".)",
],
];
9 changes: 6 additions & 3 deletions resources/lang/en/exercises/3_76.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@

return [
'title' => 'Smooth procedure',
'description' =>
"Eva Lu Ator has a criticism of Louis's approach in exercise 3.75. " .
"The program he wrote is not modular, because it intermixes the operation of smoothing with the zero-crossing extraction. " .
'description' => [
'1' =>
"Eva Lu Ator has a criticism of Louis's approach in exercise ",
'2' =>
". The program he wrote is not modular, because it intermixes the operation of smoothing with the zero-crossing extraction. " .
"For example, the extractor should not have to be changed if Alyssa finds a better way to condition her input signal. " .
"Help Louis by writing a procedure smooth that takes a stream as input and produces a stream in which each element is the average of two successive input stream elements. " .
"Then use smooth as a component to implement the zero-crossing detector in a more modular style.",
],
];
4 changes: 3 additions & 1 deletion resources/lang/ru/exercises/2_37.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
'7' =>
"Скалярное произведение мы можем определить так:",
'8' =>
"Заполните пропуски в следующих процедурах для вычисления остальных матричных операций. (Процедура accumulate-n описана в упражнении 2.36.)",
"Заполните пропуски в следующих процедурах для вычисления остальных матричных операций. (Процедура accumulate-n описана в упражнении ",
'9' =>
".)",
],
];
9 changes: 6 additions & 3 deletions resources/lang/ru/exercises/3_76.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@

return [
'title' => 'Процедура smooth',
'description' =>
"Ева Лу Атор недовольна подходом Хьюго из упражнения 3.75. " .
"Написанная им программа не модульна, поскольку смешивает операции сглаживания и отлова пересечений ноля. " .
'description' => [
'1' =>
"Ева Лу Атор недовольна подходом Хьюго из упражнения ",
'2' =>
". Написанная им программа не модульна, поскольку смешивает операции сглаживания и отлова пересечений ноля. " .
"Например, тест на пересечение не должен изменяться, если Лизе удастся найти другой способ улучшить качество входного сигнала. " .
"Помогите Хьюго и напишите процедуру smooth, которая берет на входе поток, а на выходе выдает поток, элементы которого получены усреднением каждых двух последовательных элементов входного потока. " .
"Затем используйте smooth как компоненту и реализуйте детектор перехода через ноль в более модульном стиле.",
],
];
3 changes: 2 additions & 1 deletion resources/views/exercise/listing/2_37.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
<pre><code>(define (dot-product v w)
(accumulate + 0 (map * v w)))
</code></pre>
<p>{{ __('exercises/2_37.description.8') }}</p>
<p>{{ __('exercises/2_37.description.8') }}<a href="{{ route('exercises.show', getExercise('2.36')) }}">2.36</a>
{{ __('exercises/2_37.description.9') }}</p>
<pre><code>(define (matrix-*-vector m v)
(map &lt;??&gt; m))
(define (transpose mat)
Expand Down
3 changes: 2 additions & 1 deletion resources/views/exercise/listing/3_76.blade.php
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
<p>{{ __('exercises/3_76.description') }}</p>
<p>{{ __('exercises/3_76.description.1') }}<a href="{{ route('exercises.show', getExercise('3.75')) }}">3.75</a>
{{ __('exercises/3_76.description.2') }}</p>

0 comments on commit 9e479bc

Please sign in to comment.