Question
Question 1
(a) Write a Scheme procedure to evaluate the expression: 3*4-2+(9-4*2)+1.
(b) Write a Scheme procedure to evaluate the expression: -1*(7-2+5)*2/(1+2*3).

Question 2
A function f is defined by the rules:
f(n) = n, if n<4
f(n) = f(n-1) + 2f(n-2) + 3f(n-3) + 4f(n-4), otherwise
(a) Write a procedure that computes f by means of a recursive process.
(b) Write a procedure that computes f by means of an iterative process (i.e., a tail-recursive program).

Question 3
Pascal's triangle - The numbers at the edge of the triangle are all 1, and each number inside the triangle is the sum of the two numbers above it.
Write a procedure that computes elements of Pascal's triangle by means of a recursive process.
E.g., (pascals 0 0) → 1
(pascals 2 1) → 2
(pascals 4 2) → 6

Question 4
Consider the definition of general summation of numbers between two values

(define (sum term a next b)
(if (> a b)
    0
    (+ (term a)
       (sum term (next a) next b))))

Given helper functions inc and identity one can, for example, define a function that sums all integers from a to b:
(define (inc x) (+ x 1))
(define (identity x) x)
(define (sum-integers a b)
(sum identity a inc b))
The general sum procedure above generates a linear recursive process.
Rewrite it as an iterative process.

Question 5
(a) Write a procedure (product term a next b) similar to the summation procedure above. It should return the product of the values of a function at points over a given range. Write this as a recursive process.
(b) Define factorial in terms of product.
(c) Rewrite your product from part (a) to produce an iterative process.

Question 6
The following program can be used to determine if a given interpreter is using applicative-order evaluations or normal-order evaluation:
(define (p)(p))
(define (test x y)
   (if (= x 0)
      0
      y))
(test 0 (p))
(Assume that the evaluation rule for the special form 'if' is the same for both evaluation schemes: The predicate (condition) expression is evaluated first, and the result determines whether to evaluate the consequent (then) or the alternative (else) expression.)
a. What will be the behaviour of this code on an interpreter that uses applicative-order evaluation? Explain why.
b. What behaviour will be observed with an interpreter that uses normal-order evaluation? Explain why.
c. Which style of interpreter does Scheme use (assuming #lang R5RS)?

Question 7
Newton's method for cube roots is based on the fact that if y is an approximation to the cube root of x, then a better approximation is given by the value: (x/y²+2y)/3
Use this formula to implement a cube-root procedure analogous to the square-root procedure.

Question 8
Observe that our model of evaluation allows for combinations whose operators are compound expressions. Use this observation to describe the behaviour of the following procedure:
(define (a-b a b)
   ((cond ((> b 0)+)((= b 0) -)(else *)) a b))
Your answer should describe what happens for all integer values of a and b. Illustrate your answer using the substitution model.

Question 9
(a) Using Newton's approximation for square root finding as shown in the Scheme notes modify the block structured form of the algorithm in order to allow a user-defined procedure for good-enough? to be used in the algorithm. The user-defined procedure should be passed into the square-root-finding procedure.
Demonstrate in your test cases that you can calculate the (my-sqrt 25) using differing 'good-enough?' functions that vary the accuracy of the result.
(b) Extend the solution provided in (a) to force the termination of the algorithm after a maximum number of iterations. This number should be passed in as well (my-sqrt 25 good-enough1 3)→5.406026962727994
(c) [5 marks] Create a new-if procedure as below. Replace the use of if in sqrt-iter with new-if. Does the new version work? Explain why or why not.
(define (new-if predicate consequent alternate)
   (cond (predicate consequent)
         (else alternate)))

Documentation & Testing
Document the purpose of each method including its expected inputs (parameters) and output (return).
It is up to you to make a convincing, documented test plan. There are standard tests that must be done (base case, testing of some upper or lower bounds of the input or results, etc.) but it is up to you to come up with a sufficient testing scheme.

Include evidence of testing your code either in comments at the bottom of your file or in a separate testing.txt file. Comment your testing as to what you are testing and why, giving expected output as well as observed output and explanations for any differences.
Include a readme.txt file with any instructions for your code, including which language you used if not explicitly defined in your code, and any major assumptions you have made.
Solution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references.
Students may use these solutions for personal skill-building and practice.
Unethical use is strictly forbidden.

2. F Functions methods
a. ; The program computes f by means of a recursive process
(define (f n) ;define part and take value
(cond ((< n 4) n) ;calculation and checking value
((or (> n 4) (= n 4))
(+ (f (- n 1)) (* 2 (f (- n 2))) (* 3 (f (- n 3)))(* 4 (f (- n 4)))))))

Welcome to DrRacket, version 6.5 [3m].
Language: R5RS; memory limit: 512 MB.
> (f 1)
1
> (f 2)
2
> (f 3)
3
> (f 4)
10
>

b. ; The program computes f by means of a interative process
(define (f-iterative n) ;define part and taking in the value
(if (< n 4) ;calculation and checking value
      n ;statement if true
      (f-iter   3 2 1 0 n))) ;statement if false
(define (f-iter a b c d count) ;calculate function
(if (< count 4)
      a
      (f-iter (+ a (* 2 b) (* 3 c) (* 4 d))
             a b c
(- count 1))))
Welcome to DrRacket, version 6.5 [3m].
Language: R5RS; memory limit: 512 MB.
> (f-iterative 0)
0
> (f-iterative 1)
1
> (f-iterative 2)
2
> (f-iterative 3)
3
> (f-iterative 4)
10
>
This is only a preview of the solution.
Please use the purchase button to see the entire solution.
By purchasing this solution you'll be able to access the following files:
Solution.docx
Purchase Solution
$25.00
Google Pay
Amazon
Paypal
Mastercard
Visacard
Discover
Amex
View Available Computer Science Tutors 529 tutors matched
Ionut
(ionut)
Hi! MSc Applied Informatics & Computer Science Engineer. Practical experience in many CS & IT branches.Research work & homework
5/5 (5,654+ sessions)
2 hours avg response
Leo
(Leo)
Hi! I have been a professor in New York and taught in a math department and in an applied math department.
4.9/5 (5,652+ sessions)
2 hours avg response
Pranay
(math1983)
Ph.D. in mathematics and working as an Assistant Professor in University. I can provide help in mathematics, statistics and allied areas.
4.6/5 (5,512+ sessions)
1 hour avg response
8.1.0PHP Version827msRequest Duration45MBMemory UsageGET college-homework-library/{category}/{subject}/{id}Route
    • Booting (466ms)time
    • Application (361ms)time
    • 1 x Booting (56.4%)
      466ms
      1 x Application (43.6%)
      361ms
      • Illuminate\Routing\Events\Routing (2.9ms)
      • Illuminate\Routing\Events\RouteMatched (701μs)
      • Illuminate\Foundation\Events\LocaleUpdated (12.9ms)
      • eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibrary (250μs)
      • eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibrary (214μs)
      • Illuminate\Database\Events\ConnectionEstablished (1.26ms)
      • Illuminate\Database\Events\StatementPrepared (10.04ms)
      • Illuminate\Database\Events\QueryExecuted (1.14ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (136μs)
      • eloquent.booting: App\Models\Subject (167μs)
      • eloquent.booted: App\Models\Subject (60μs)
      • Illuminate\Database\Events\StatementPrepared (2.49ms)
      • Illuminate\Database\Events\QueryExecuted (943μs)
      • eloquent.retrieved: App\Models\Subject (141μs)
      • eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibraryFile (152μs)
      • eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibraryFile (58μs)
      • Illuminate\Database\Events\StatementPrepared (778μs)
      • Illuminate\Database\Events\QueryExecuted (1.05ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (200μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (27μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (13μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (11μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (11μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (10μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (11μs)
      • eloquent.booting: App\Models\SubjectCat (1.64ms)
      • eloquent.booted: App\Models\SubjectCat (234μs)
      • Illuminate\Database\Events\StatementPrepared (9.28ms)
      • Illuminate\Database\Events\QueryExecuted (1.79ms)
      • eloquent.retrieved: App\Models\SubjectCat (168μs)
      • Illuminate\Cache\Events\CacheHit (32.23ms)
      • Illuminate\Cache\Events\CacheMissed (454μs)
      • Illuminate\Database\Events\StatementPrepared (1.31ms)
      • Illuminate\Database\Events\QueryExecuted (1.65ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (116μs)
      • Illuminate\Database\Events\StatementPrepared (735μs)
      • Illuminate\Database\Events\QueryExecuted (1.49ms)
      • eloquent.retrieved: App\Models\Subject (136μs)
      • Illuminate\Cache\Events\KeyWritten (794μs)
      • Illuminate\Database\Events\StatementPrepared (2.28ms)
      • Illuminate\Database\Events\QueryExecuted (1.13ms)
      • Illuminate\Database\Events\StatementPrepared (6.72ms)
      • Illuminate\Database\Events\QueryExecuted (1.29ms)
      • Illuminate\Database\Events\StatementPrepared (1.21ms)
      • Illuminate\Database\Events\QueryExecuted (3.11ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (84μs)
      • Illuminate\Cache\Events\CacheHit (974μs)
      • creating: homework.show (661μs)
      • composing: homework.show (202μs)
      • creating: components.breadcrumbs (280μs)
      • composing: components.breadcrumbs (327μs)
      • Illuminate\Database\Events\StatementPrepared (4.71ms)
      • Illuminate\Database\Events\QueryExecuted (1.08ms)
      • eloquent.retrieved: App\Models\SubjectCat (163μs)
      • Illuminate\Cache\Events\CacheMissed (4.1ms)
      • Illuminate\Database\Events\StatementPrepared (877μs)
      • Illuminate\Database\Events\QueryExecuted (1.09ms)
      • eloquent.retrieved: App\Models\SubjectCat (86μs)
      • Illuminate\Cache\Events\KeyWritten (554μs)
      • Illuminate\Cache\Events\CacheHit (484μs)
      • Illuminate\Cache\Events\CacheHit (258μs)
      • Illuminate\Cache\Events\CacheHit (237μs)
      • Illuminate\Cache\Events\CacheHit (276μs)
      • Illuminate\Cache\Events\CacheHit (192μs)
      • Illuminate\Cache\Events\CacheHit (234μs)
      • Illuminate\Cache\Events\CacheHit (189μs)
      • Illuminate\Cache\Events\CacheHit (207μs)
      • Illuminate\Cache\Events\CacheHit (171μs)
      • Illuminate\Cache\Events\CacheHit (195μs)
      • Illuminate\Cache\Events\CacheHit (294μs)
      • Illuminate\Cache\Events\CacheHit (269μs)
      • Illuminate\Cache\Events\CacheHit (169μs)
      • Illuminate\Cache\Events\CacheMissed (341μs)
      • Illuminate\Database\Events\StatementPrepared (2.18ms)
      • Illuminate\Database\Events\QueryExecuted (1.51ms)
      • eloquent.retrieved: App\Models\SubjectCat (102μs)
      • Illuminate\Cache\Events\KeyWritten (657μs)
      • Illuminate\Cache\Events\CacheHit (410μs)
      • Illuminate\Cache\Events\CacheHit (463μs)
      • Illuminate\Cache\Events\CacheHit (472μs)
      • Illuminate\Cache\Events\CacheHit (427μs)
      • Illuminate\Cache\Events\CacheHit (251μs)
      • Illuminate\Cache\Events\CacheHit (255μs)
      • Illuminate\Cache\Events\CacheHit (207μs)
      • Illuminate\Cache\Events\CacheMissed (401μs)
      • Illuminate\Database\Events\StatementPrepared (9.38ms)
      • Illuminate\Database\Events\QueryExecuted (1.64ms)
      • eloquent.retrieved: App\Models\SubjectCat (129μs)
      • Illuminate\Cache\Events\KeyWritten (482μs)
      • Illuminate\Cache\Events\CacheHit (584μs)
      • Illuminate\Cache\Events\CacheHit (402μs)
      • Illuminate\Cache\Events\CacheHit (237μs)
      • Illuminate\Cache\Events\CacheHit (255μs)
      • Illuminate\Cache\Events\CacheHit (255μs)
      • Illuminate\Cache\Events\CacheHit (409μs)
      • Illuminate\Cache\Events\CacheHit (373μs)
      • Illuminate\Cache\Events\CacheHit (256μs)
      • Illuminate\Cache\Events\CacheHit (207μs)
      • Illuminate\Cache\Events\CacheHit (339μs)
      • Illuminate\Cache\Events\CacheHit (205μs)
      • Illuminate\Cache\Events\CacheHit (230μs)
      • Illuminate\Cache\Events\CacheHit (180μs)
      • Illuminate\Cache\Events\CacheHit (223μs)
      • Illuminate\Cache\Events\CacheHit (6.57ms)
      • Illuminate\Cache\Events\CacheHit (432μs)
      • Illuminate\Cache\Events\CacheHit (244μs)
      • Illuminate\Cache\Events\CacheHit (235μs)
      • Illuminate\Cache\Events\CacheHit (190μs)
      • Illuminate\Cache\Events\CacheHit (216μs)
      • Illuminate\Cache\Events\CacheHit (888μs)
      • Illuminate\Cache\Events\CacheHit (5.12ms)
      • Illuminate\Cache\Events\CacheHit (405μs)
      • Illuminate\Cache\Events\CacheHit (277μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheHit (221μs)
      • Illuminate\Cache\Events\CacheHit (195μs)
      • Illuminate\Cache\Events\CacheHit (6.25ms)
      • Illuminate\Cache\Events\CacheHit (1.19ms)
      • Illuminate\Cache\Events\CacheHit (254μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheMissed (318μs)
      • Illuminate\Database\Events\StatementPrepared (723μs)
      • Illuminate\Database\Events\QueryExecuted (1.7ms)
      • eloquent.retrieved: App\Models\SubjectCat (94μs)
      • Illuminate\Cache\Events\KeyWritten (579μs)
      • Illuminate\Cache\Events\CacheHit (277μs)
      • Illuminate\Cache\Events\CacheHit (234μs)
      • Illuminate\Cache\Events\CacheHit (185μs)
      • Illuminate\Cache\Events\CacheHit (272μs)
      • Illuminate\Cache\Events\CacheHit (298μs)
      • Illuminate\Cache\Events\CacheHit (324μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (347μs)
      • Illuminate\Cache\Events\CacheHit (211μs)
      • Illuminate\Cache\Events\CacheHit (216μs)
      • Illuminate\Cache\Events\CacheHit (323μs)
      • Illuminate\Cache\Events\CacheHit (274μs)
      • Illuminate\Cache\Events\CacheHit (213μs)
      • Illuminate\Cache\Events\CacheHit (237μs)
      • Illuminate\Cache\Events\CacheHit (197μs)
      • Illuminate\Cache\Events\CacheHit (188μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (191μs)
      • Illuminate\Cache\Events\CacheHit (160μs)
      • Illuminate\Cache\Events\CacheHit (190μs)
      • Illuminate\Cache\Events\CacheHit (178μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheHit (117μs)
      • Illuminate\Cache\Events\CacheHit (274μs)
      • Illuminate\Cache\Events\CacheHit (198μs)
      • Illuminate\Cache\Events\CacheHit (212μs)
      • Illuminate\Cache\Events\CacheHit (180μs)
      • Illuminate\Cache\Events\CacheHit (205μs)
      • Illuminate\Cache\Events\CacheHit (179μs)
      • Illuminate\Cache\Events\CacheHit (210μs)
      • Illuminate\Cache\Events\CacheHit (204μs)
      • Illuminate\Cache\Events\CacheHit (243μs)
      • Illuminate\Cache\Events\CacheHit (206μs)
      • Illuminate\Cache\Events\CacheHit (156μs)
      • Illuminate\Cache\Events\CacheHit (137μs)
      • Illuminate\Cache\Events\CacheHit (677μs)
      • Illuminate\Cache\Events\CacheHit (255μs)
      • Illuminate\Cache\Events\CacheHit (238μs)
      • Illuminate\Cache\Events\CacheHit (188μs)
      • Illuminate\Cache\Events\CacheMissed (474μs)
      • Illuminate\Database\Events\StatementPrepared (5.36ms)
      • Illuminate\Database\Events\QueryExecuted (4.77ms)
      • eloquent.retrieved: App\Models\SubjectCat (116μs)
      • Illuminate\Cache\Events\KeyWritten (442μs)
      • Illuminate\Cache\Events\CacheHit (289μs)
      • Illuminate\Cache\Events\CacheHit (389μs)
      • Illuminate\Cache\Events\CacheHit (223μs)
      • Illuminate\Cache\Events\CacheHit (238μs)
      • Illuminate\Cache\Events\CacheHit (172μs)
      • Illuminate\Cache\Events\CacheHit (200μs)
      • Illuminate\Cache\Events\CacheHit (169μs)
      • Illuminate\Cache\Events\CacheMissed (293μs)
      • Illuminate\Database\Events\StatementPrepared (5.08ms)
      • Illuminate\Database\Events\QueryExecuted (6.82ms)
      • eloquent.retrieved: App\Models\SubjectCat (110μs)
      • Illuminate\Cache\Events\KeyWritten (2.96ms)
      • Illuminate\Cache\Events\CacheHit (289μs)
      • Illuminate\Cache\Events\CacheHit (1.39ms)
      • Illuminate\Cache\Events\CacheHit (5.09ms)
      • Illuminate\Cache\Events\CacheHit (334μs)
      • Illuminate\Cache\Events\CacheHit (476μs)
      • Illuminate\Cache\Events\CacheHit (230μs)
      • Illuminate\Cache\Events\CacheHit (192μs)
      • Illuminate\Cache\Events\CacheHit (218μs)
      • Illuminate\Cache\Events\CacheHit (1.52ms)
      • Illuminate\Cache\Events\CacheHit (275μs)
      • Illuminate\Cache\Events\CacheHit (355μs)
      • Illuminate\Cache\Events\CacheHit (1.19ms)
      • Illuminate\Cache\Events\CacheHit (243μs)
      • Illuminate\Cache\Events\CacheHit (446μs)
      • Illuminate\Cache\Events\CacheHit (194μs)
      • Illuminate\Cache\Events\CacheHit (312μs)
      • Illuminate\Cache\Events\CacheHit (174μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (259μs)
      • Illuminate\Cache\Events\CacheHit (200μs)
      • Illuminate\Cache\Events\CacheHit (189μs)
      • Illuminate\Cache\Events\CacheHit (634μs)
      • Illuminate\Cache\Events\CacheHit (220μs)
      • Illuminate\Cache\Events\CacheHit (175μs)
      • Illuminate\Cache\Events\CacheHit (4.27ms)
      • Illuminate\Cache\Events\CacheHit (195μs)
      • Illuminate\Cache\Events\CacheHit (471μs)
      • Illuminate\Cache\Events\CacheHit (10.3ms)
      • Illuminate\Cache\Events\CacheMissed (521μs)
      • Illuminate\Database\Events\StatementPrepared (2.12ms)
      • Illuminate\Database\Events\QueryExecuted (1.64ms)
      • eloquent.retrieved: App\Models\SubjectCat (112μs)
      • Illuminate\Cache\Events\KeyWritten (507μs)
      • Illuminate\Cache\Events\CacheHit (212μs)
      • Illuminate\Cache\Events\CacheHit (196μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (469μs)
      • Illuminate\Cache\Events\CacheHit (166μs)
      • Illuminate\Cache\Events\CacheHit (190μs)
      • Illuminate\Cache\Events\CacheHit (172μs)
      • Illuminate\Cache\Events\CacheHit (209μs)
      • Illuminate\Cache\Events\CacheHit (175μs)
      • Illuminate\Cache\Events\CacheHit (196μs)
      • Illuminate\Cache\Events\CacheHit (240μs)
      • Illuminate\Cache\Events\CacheHit (209μs)
      • Illuminate\Cache\Events\CacheHit (179μs)
      • Illuminate\Cache\Events\CacheHit (590μs)
      • Illuminate\Cache\Events\CacheHit (177μs)
      • Illuminate\Cache\Events\CacheHit (287μs)
      • Illuminate\Cache\Events\CacheHit (219μs)
      • Illuminate\Cache\Events\CacheHit (207μs)
      • Illuminate\Cache\Events\CacheHit (261μs)
      • Illuminate\Cache\Events\CacheHit (270μs)
      • Illuminate\Cache\Events\CacheHit (172μs)
      • Illuminate\Cache\Events\CacheHit (192μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (745μs)
      • Illuminate\Cache\Events\CacheHit (312μs)
      • Illuminate\Cache\Events\CacheHit (8.55ms)
      • Illuminate\Cache\Events\CacheHit (243μs)
      • Illuminate\Cache\Events\CacheHit (217μs)
      • Illuminate\Cache\Events\CacheHit (169μs)
      • Illuminate\Cache\Events\CacheHit (392μs)
      • Illuminate\Cache\Events\CacheHit (203μs)
      • Illuminate\Cache\Events\CacheHit (276μs)
      • Illuminate\Cache\Events\CacheHit (380μs)
      • Illuminate\Cache\Events\CacheHit (384μs)
      • Illuminate\Cache\Events\CacheHit (179μs)
      • Illuminate\Cache\Events\CacheHit (346μs)
      • Illuminate\Cache\Events\CacheHit (243μs)
      • Illuminate\Cache\Events\CacheHit (200μs)
      • Illuminate\Cache\Events\CacheHit (217μs)
      • Illuminate\Cache\Events\CacheHit (209μs)
      • Illuminate\Cache\Events\CacheHit (178μs)
      • Illuminate\Cache\Events\CacheHit (445μs)
      • Illuminate\Cache\Events\CacheHit (174μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (250μs)
      • Illuminate\Cache\Events\CacheHit (168μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (160μs)
      • Illuminate\Cache\Events\CacheHit (292μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (196μs)
      • Illuminate\Cache\Events\CacheHit (175μs)
      • Illuminate\Cache\Events\CacheHit (200μs)
      • Illuminate\Cache\Events\CacheHit (175μs)
      • Illuminate\Cache\Events\CacheHit (195μs)
      • Illuminate\Cache\Events\CacheHit (556μs)
      • Illuminate\Cache\Events\CacheHit (235μs)
      • Illuminate\Cache\Events\CacheHit (163μs)
      • Illuminate\Cache\Events\CacheHit (8.62ms)
      • Illuminate\Cache\Events\CacheHit (273μs)
      • Illuminate\Cache\Events\CacheHit (212μs)
      • Illuminate\Cache\Events\CacheHit (217μs)
      • Illuminate\Cache\Events\CacheMissed (1.39ms)
      • Illuminate\Database\Events\StatementPrepared (850μs)
      • Illuminate\Database\Events\QueryExecuted (2.06ms)
      • eloquent.retrieved: App\Models\SubjectCat (386μs)
      • Illuminate\Cache\Events\KeyWritten (613μs)
      • Illuminate\Cache\Events\CacheHit (340μs)
      • Illuminate\Cache\Events\CacheHit (313μs)
      • Illuminate\Cache\Events\CacheHit (1.11ms)
      • Illuminate\Cache\Events\CacheHit (248μs)
      • Illuminate\Cache\Events\CacheHit (244μs)
      • Illuminate\Cache\Events\CacheHit (325μs)
      • Illuminate\Cache\Events\CacheHit (180μs)
      • Illuminate\Cache\Events\CacheHit (199μs)
      • Illuminate\Cache\Events\CacheHit (323μs)
      • Illuminate\Cache\Events\CacheHit (243μs)
      • Illuminate\Cache\Events\CacheHit (188μs)
      • Illuminate\Cache\Events\CacheHit (209μs)
      • Illuminate\Cache\Events\CacheHit (220μs)
      • Illuminate\Cache\Events\CacheHit (222μs)
      • Illuminate\Cache\Events\CacheHit (182μs)
      • Illuminate\Cache\Events\CacheHit (220μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (9.31ms)
      • Illuminate\Cache\Events\CacheHit (297μs)
      • Illuminate\Cache\Events\CacheHit (204μs)
      • Illuminate\Cache\Events\CacheHit (256μs)
      • Illuminate\Cache\Events\CacheHit (364μs)
      • Illuminate\Cache\Events\CacheHit (246μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (403μs)
      • Illuminate\Cache\Events\CacheHit (189μs)
      • Illuminate\Cache\Events\CacheHit (178μs)
      • Illuminate\Cache\Events\CacheHit (159μs)
      • Illuminate\Cache\Events\CacheHit (227μs)
      • Illuminate\Cache\Events\CacheHit (245μs)
      • Illuminate\Cache\Events\CacheHit (8.34ms)
      • Illuminate\Cache\Events\CacheHit (254μs)
      • Illuminate\Cache\Events\CacheHit (237μs)
      • Illuminate\Cache\Events\CacheHit (222μs)
      • Illuminate\Cache\Events\CacheHit (219μs)
      • Illuminate\Cache\Events\CacheHit (169μs)
      • Illuminate\Cache\Events\CacheHit (194μs)
      • Illuminate\Cache\Events\CacheHit (216μs)
      • Illuminate\Cache\Events\CacheHit (197μs)
      • Illuminate\Cache\Events\CacheHit (218μs)
      • Illuminate\Cache\Events\CacheHit (210μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (266μs)
      • Illuminate\Cache\Events\CacheHit (172μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (163μs)
      • Illuminate\Cache\Events\CacheHit (355μs)
      • Illuminate\Cache\Events\CacheHit (191μs)
      • Illuminate\Cache\Events\CacheHit (223μs)
      • Illuminate\Cache\Events\CacheHit (181μs)
      • Illuminate\Cache\Events\CacheHit (276μs)
      • Illuminate\Cache\Events\CacheHit (233μs)
      • Illuminate\Cache\Events\CacheHit (286μs)
      • Illuminate\Cache\Events\CacheHit (259μs)
      • Illuminate\Cache\Events\CacheHit (201μs)
      • Illuminate\Cache\Events\CacheHit (283μs)
      • Illuminate\Cache\Events\CacheHit (426μs)
      • Illuminate\Cache\Events\CacheHit (185μs)
      • Illuminate\Cache\Events\CacheHit (352μs)
      • Illuminate\Cache\Events\CacheHit (192μs)
      • Illuminate\Cache\Events\CacheHit (400μs)
      • Illuminate\Cache\Events\CacheHit (170μs)
      • Illuminate\Cache\Events\CacheHit (4.34ms)
      • Illuminate\Cache\Events\CacheHit (291μs)
      • Illuminate\Cache\Events\CacheHit (296μs)
      • Illuminate\Cache\Events\CacheHit (203μs)
      • Illuminate\Cache\Events\CacheHit (201μs)
      • Illuminate\Cache\Events\CacheHit (167μs)
      • Illuminate\Cache\Events\CacheHit (214μs)
      • Illuminate\Cache\Events\CacheHit (190μs)
      • Illuminate\Cache\Events\CacheHit (212μs)
      • Illuminate\Cache\Events\CacheHit (174μs)
      • Illuminate\Cache\Events\CacheHit (284μs)
      • Illuminate\Cache\Events\CacheHit (171μs)
      • Illuminate\Cache\Events\CacheHit (277μs)
      • Illuminate\Cache\Events\CacheHit (216μs)
      • Illuminate\Cache\Events\CacheHit (206μs)
      • Illuminate\Cache\Events\CacheHit (172μs)
      • Illuminate\Cache\Events\CacheHit (266μs)
      • Illuminate\Cache\Events\CacheHit (392μs)
      • Illuminate\Cache\Events\CacheHit (4.22ms)
      • Illuminate\Cache\Events\CacheHit (282μs)
      • Illuminate\Cache\Events\CacheHit (344μs)
      • Illuminate\Cache\Events\CacheHit (230μs)
      • Illuminate\Cache\Events\CacheHit (283μs)
      • Illuminate\Cache\Events\CacheHit (290μs)
      • Illuminate\Cache\Events\CacheHit (198μs)
      • Illuminate\Cache\Events\CacheHit (180μs)
      • Illuminate\Cache\Events\CacheHit (204μs)
      • Illuminate\Cache\Events\CacheHit (152μs)
      • Illuminate\Cache\Events\CacheHit (178μs)
      • Illuminate\Cache\Events\CacheHit (294μs)
      • Illuminate\Cache\Events\CacheHit (269μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (236μs)
      • Illuminate\Cache\Events\CacheHit (285μs)
      • Illuminate\Cache\Events\CacheHit (253μs)
      • Illuminate\Cache\Events\CacheHit (331μs)
      • Illuminate\Cache\Events\CacheHit (192μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (182μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (283μs)
      • Illuminate\Cache\Events\CacheHit (179μs)
      • Illuminate\Cache\Events\CacheHit (181μs)
      • Illuminate\Cache\Events\CacheHit (159μs)
      • creating: site.layouts.app (580μs)
      • composing: site.layouts.app (25μs)
      • creating: components.canonical (513μs)
      • composing: components.canonical (105μs)
      • creating: components.open-graph (204μs)
      • composing: components.open-graph (78μs)
      • creating: site.headers.header (309μs)
      • composing: site.headers.header (182μs)
      • Illuminate\Cache\Events\CacheHit (8.97ms)
      • creating: components.footer (156μs)
      • composing: components.footer (119μs)
      • Illuminate\Cache\Events\CacheHit (1.25ms)
      • Illuminate\Cache\Events\CacheHit (328μs)
      • Illuminate\Cache\Events\CacheHit (255μs)
      • Illuminate\Cache\Events\CacheHit (178μs)
      • Illuminate\Cache\Events\CacheHit (174μs)
      • Illuminate\Cache\Events\CacheHit (178μs)
      • Illuminate\Cache\Events\CacheHit (300μs)
      • Illuminate\Cache\Events\CacheHit (367μs)
      • Illuminate\Cache\Events\CacheHit (504μs)
      • Illuminate\Cache\Events\CacheHit (285μs)
      • Illuminate\Cache\Events\CacheHit (202μs)
      • Illuminate\Cache\Events\CacheHit (198μs)
      • Illuminate\Cache\Events\CacheHit (1.56ms)
      • Illuminate\Cache\Events\CacheHit (253μs)
      • creating: components.forms.contact-us (291μs)
      • composing: components.forms.contact-us (270μs)
      • creating: components.forms.get-started (219μs)
      • composing: components.forms.get-started (97μs)
      • creating: components.forms.free-tool-download (180μs)
      • composing: components.forms.free-tool-download (82μs)
      • creating: components.forms.claim-free-worksheet (276μs)
      • composing: components.forms.claim-free-worksheet (85μs)
      • creating: components.forms.tutor-subscription-waitlist (346μs)
      • composing: components.forms.tutor-subscription-waitlist (86μs)
      • creating: components.forms.tutor-subscription-join (145μs)
      • composing: components.forms.tutor-subscription-join (76μs)
      • creating: components.forms.tutor-support (136μs)
      • composing: components.forms.tutor-support (73μs)
      • 313 x Illuminate\Cache\Events\CacheHit (24.82%)
        205ms
        18 x Illuminate\Database\Events\StatementPrepared (8%)
        66.11ms
        18 x Illuminate\Database\Events\QueryExecuted (4.34%)
        35.89ms
        1 x Illuminate\Foundation\Events\LocaleUpdated (1.56%)
        12.90ms
        9 x Illuminate\Cache\Events\CacheMissed (1%)
        8.29ms
        9 x Illuminate\Cache\Events\KeyWritten (0.92%)
        7.59ms
        1 x Illuminate\Routing\Events\Routing (0.35%)
        2.90ms
        1 x eloquent.booting: App\Models\SubjectCat (0.2%)
        1.64ms
        10 x eloquent.retrieved: App\Models\SubjectCat (0.18%)
        1.47ms
        1 x Illuminate\Database\Events\ConnectionEstablished (0.15%)
        1.26ms
        1 x Illuminate\Routing\Events\RouteMatched (0.08%)
        701μs
        1 x creating: homework.show (0.08%)
        661μs
        1 x creating: site.layouts.app (0.07%)
        580μs
        1 x creating: components.canonical (0.06%)
        513μs
        8 x eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (0.04%)
        367μs
        1 x creating: components.forms.tutor-subscription-waitlist (0.04%)
        346μs
        1 x composing: components.breadcrumbs (0.04%)
        327μs
        1 x creating: site.headers.header (0.04%)
        309μs
        1 x creating: components.forms.contact-us (0.04%)
        291μs
        1 x creating: components.breadcrumbs (0.03%)
        280μs
        2 x eloquent.retrieved: App\Models\Subject (0.03%)
        277μs
        1 x creating: components.forms.claim-free-worksheet (0.03%)
        276μs
        1 x composing: components.forms.contact-us (0.03%)
        270μs
        2 x eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (0.03%)
        252μs
        1 x eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibrary (0.03%)
        250μs
        1 x eloquent.booted: App\Models\SubjectCat (0.03%)
        234μs
        1 x creating: components.forms.get-started (0.03%)
        219μs
        1 x eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibrary (0.03%)
        214μs
        1 x creating: components.open-graph (0.02%)
        204μs
        1 x composing: homework.show (0.02%)
        202μs
        1 x composing: site.headers.header (0.02%)
        182μs
        1 x creating: components.forms.free-tool-download (0.02%)
        180μs
        1 x eloquent.booting: App\Models\Subject (0.02%)
        167μs
        1 x creating: components.footer (0.02%)
        156μs
        1 x eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibraryFile (0.02%)
        152μs
        1 x creating: components.forms.tutor-subscription-join (0.02%)
        145μs
        1 x creating: components.forms.tutor-support (0.02%)
        136μs
        1 x composing: components.footer (0.01%)
        119μs
        1 x composing: components.canonical (0.01%)
        105μs
        1 x composing: components.forms.get-started (0.01%)
        97μs
        1 x composing: components.forms.tutor-subscription-waitlist (0.01%)
        86μs
        1 x composing: components.forms.claim-free-worksheet (0.01%)
        85μs
        1 x composing: components.forms.free-tool-download (0.01%)
        82μs
        1 x composing: components.open-graph (0.01%)
        78μs
        1 x composing: components.forms.tutor-subscription-join (0.01%)
        76μs
        1 x composing: components.forms.tutor-support (0.01%)
        73μs
        1 x eloquent.booted: App\Models\Subject (0.01%)
        60μs
        1 x eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibraryFile (0.01%)
        58μs
        1 x composing: site.layouts.app (0%)
        25μs
      14 templates were rendered
      • 1x homework.showshow.blade.phpblade
      • 1x components.breadcrumbsbreadcrumbs.blade.phpblade
      • 1x site.layouts.appapp.blade.phpblade
      • 1x components.canonicalcanonical.blade.phpblade
      • 1x components.open-graphopen-graph.blade.phpblade
      • 1x site.headers.headerheader.blade.phpblade
      • 1x components.footerfooter.blade.phpblade
      • 1x components.forms.contact-uscontact-us.blade.phpblade
      • 1x components.forms.get-startedget-started.blade.phpblade
      • 1x components.forms.free-tool-downloadfree-tool-download.blade.phpblade
      • 1x components.forms.claim-free-worksheetclaim-free-worksheet.blade.phpblade
      • 1x components.forms.tutor-subscription-waitlisttutor-subscription-waitlist.blade.phpblade
      • 1x components.forms.tutor-subscription-jointutor-subscription-join.blade.phpblade
      • 1x components.forms.tutor-supporttutor-support.blade.phpblade
      uri
      GET college-homework-library/{category}/{subject}/{id}
      middleware
      web, utm.parameters
      controller
      App\Http\Controllers\HomeworkLibraryController@show
      namespace
      where
      as
      homework.show
      file
      app/Http/Controllers/HomeworkLibraryController.php:79-176
      18 statements were executed, 5 of which were duplicates, 13 unique. Show only duplicated77.76ms
      • Connection Establishedtwenty4_siteHomeworkLibraryController.php#91
        Backtrace
        • 13. app/Http/Controllers/HomeworkLibraryController.php:91
        • 14. vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
        • 15. vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
        • 16. vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
        • 17. vendor/laravel/framework/src/Illuminate/Routing/Route.php:205
      • select * from `solutionslibrary` where `status` = 'published' and `price` > 0 and `solutionslibrary`.`id` = '26161' limit 1
        10.08mstwenty4_siteHomeworkLibraryController.php#97
        Bindings
        • 0: published
        • 1: 0
        • 2: 26161
        Backtrace
        • 16. app/Http/Controllers/HomeworkLibraryController.php:97
        • 17. vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
        • 18. vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
        • 19. vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
        • 20. vendor/laravel/framework/src/Illuminate/Routing/Route.php:205
      • select * from `subjects` where `subjects`.`id` in (460)
        970μstwenty4_siteHomeworkLibraryController.php#97
        Backtrace
        • 21. app/Http/Controllers/HomeworkLibraryController.php:97
        • 22. vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
        • 23. vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
        • 24. vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
        • 25. vendor/laravel/framework/src/Illuminate/Routing/Route.php:205
      • select * from `solutionslibrary_files` where `solutionslibrary_files`.`solutionlib_id` in (26161)
        860μstwenty4_siteHomeworkLibraryController.php#97
        Backtrace
        • 21. app/Http/Controllers/HomeworkLibraryController.php:97
        • 22. vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
        • 23. vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
        • 24. vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
        • 25. vendor/laravel/framework/src/Illuminate/Routing/Route.php:205
      • select * from `subject_cats` where `subject_cats`.`id` = 3 limit 1
        9.81mstwenty4_siteHomeworkLibrary.php#201
        Bindings
        • 0: 3
        Backtrace
        • 20. app/Models/HomeworkLibrary/HomeworkLibrary.php:201
        • 26. app/Http/Controllers/HomeworkLibraryController.php:105
        • 27. vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
        • 28. vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
        • 29. vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
      • select * from `solutionslibrary` where `id` <> 26161 and `subject` = 460 and `status` = 'published' and `price` > 0 order by RAND() limit 6
        1.83mstwenty4_siteHomeworkLibraryRepository.php#30
        Bindings
        • 0: 26161
        • 1: 460
        • 2: published
        • 3: 0
        Backtrace
        • 14. app/Repositories/HomeworkLibraryRepository.php:30
        • 15. vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • 16. vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:419
        • 18. app/Repositories/HomeworkLibraryRepository.php:39
        • 19. app/Http/Controllers/HomeworkLibraryController.php:139
      • select * from `subjects` where `subjects`.`id` in (460)
        1.35mstwenty4_siteHomeworkLibraryRepository.php#30
        Backtrace
        • 19. app/Repositories/HomeworkLibraryRepository.php:30
        • 20. vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • 21. vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:419
        • 23. app/Repositories/HomeworkLibraryRepository.php:39
        • 24. app/Http/Controllers/HomeworkLibraryController.php:139
      • select * from `solutionslibrary_files` where `solutionslibrary_files`.`solutionlib_id` = 26161 and `solutionslibrary_files`.`solutionlib_id` is not null and `publish` = 'question' order by `order` asc, `id` asc
        1.08mstwenty4_siteHomeworkLibrary.php#260
        Bindings
        • 0: 26161
        • 1: question
        Backtrace
        • 15. app/Models/HomeworkLibrary/HomeworkLibrary.php:260
        • 16. app/Transformers/HomeworkLibrary/HomeworkLibraryTransformer.php:58
        • 19. vendor/league/fractal/src/TransformerAbstract.php:128
        • 20. vendor/league/fractal/src/TransformerAbstract.php:107
        • 21. vendor/league/fractal/src/Scope.php:383
      • select * from `solutionslibrary_files` where `solutionslibrary_files`.`solutionlib_id` = 26161 and `solutionslibrary_files`.`solutionlib_id` is not null and `publish` = 'teaser' order by `order` asc, `id` asc
        6.68mstwenty4_siteHomeworkLibrary.php#260
        Bindings
        • 0: 26161
        • 1: teaser
        Backtrace
        • 15. app/Models/HomeworkLibrary/HomeworkLibrary.php:260
        • 16. app/Transformers/HomeworkLibrary/HomeworkLibraryTransformer.php:69
        • 19. vendor/league/fractal/src/TransformerAbstract.php:128
        • 20. vendor/league/fractal/src/TransformerAbstract.php:107
        • 21. vendor/league/fractal/src/Scope.php:383
      • select * from `solutionslibrary_files` where `solutionslibrary_files`.`solutionlib_id` = 26161 and `solutionslibrary_files`.`solutionlib_id` is not null and `publish` = 'solution' order by `order` asc, `id` asc
        3.28mstwenty4_siteHomeworkLibrary.php#260
        Bindings
        • 0: 26161
        • 1: solution
        Backtrace
        • 15. app/Models/HomeworkLibrary/HomeworkLibrary.php:260
        • 16. app/Transformers/HomeworkLibrary/HomeworkLibraryTransformer.php:80
        • 19. vendor/league/fractal/src/TransformerAbstract.php:128
        • 20. vendor/league/fractal/src/TransformerAbstract.php:107
        • 21. vendor/league/fractal/src/Scope.php:383
      • select * from `subject_cats` where `subject_cats`.`id` = 3 limit 1
        3.64mstwenty4_siteHomeworkLibrary.php#201
        Bindings
        • 0: 3
        Backtrace
        • 20. app/Models/HomeworkLibrary/HomeworkLibrary.php:201
        • 32. vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
        • 33. vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58
        • 34. vendor/livewire/livewire/src/ComponentConcerns/RendersLivewireComponents.php:69
        • 35. vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:70
      • select * from `subject_cats` where `subject_cats`.`id` = 1 limit 1
        1.32mstwenty4_siteSubject.php#100
        Bindings
        • 0: 1
        Backtrace
        • 18. app/Models/Subject.php:100
        • 19. vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • 20. vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:419
        • 22. app/Models/Subject.php:101
        • 34. vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
      • select * from `subject_cats` where `subject_cats`.`id` = 3 limit 1
        2.72mstwenty4_siteSubject.php#100
        Bindings
        • 0: 3
        Backtrace
        • 18. app/Models/Subject.php:100
        • 19. vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • 20. vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:419
        • 22. app/Models/Subject.php:101
        • 34. vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
      • select * from `subject_cats` where `subject_cats`.`id` = 4 limit 1
        9.87mstwenty4_siteSubject.php#100
        Bindings
        • 0: 4
        Backtrace
        • 18. app/Models/Subject.php:100
        • 19. vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • 20. vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:419
        • 22. app/Models/Subject.php:101
        • 34. vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
      • select * from `subject_cats` where `subject_cats`.`id` = 10 limit 1
        1.67mstwenty4_siteSubject.php#100
        Bindings
        • 0: 10
        Backtrace
        • 18. app/Models/Subject.php:100
        • 19. vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • 20. vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:419
        • 22. app/Models/Subject.php:101
        • 34. vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
      • select * from `subject_cats` where `subject_cats`.`id` = 33 limit 1
        9.34mstwenty4_siteSubject.php#100
        Bindings
        • 0: 33
        Backtrace
        • 18. app/Models/Subject.php:100
        • 19. vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • 20. vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:419
        • 22. app/Models/Subject.php:101
        • 34. vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
      • select * from `subject_cats` where `subject_cats`.`id` = 11 limit 1
        9.27mstwenty4_siteSubject.php#100
        Bindings
        • 0: 11
        Backtrace
        • 18. app/Models/Subject.php:100
        • 19. vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • 20. vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:419
        • 22. app/Models/Subject.php:101
        • 34. vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
      • select * from `subject_cats` where `subject_cats`.`id` = 5 limit 1
        2.68mstwenty4_siteSubject.php#100
        Bindings
        • 0: 5
        Backtrace
        • 18. app/Models/Subject.php:100
        • 19. vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • 20. vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:419
        • 22. app/Models/Subject.php:101
        • 34. vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
      • select * from `subject_cats` where `subject_cats`.`id` = 34 limit 1
        1.31mstwenty4_siteSubject.php#100
        Bindings
        • 0: 34
        Backtrace
        • 18. app/Models/Subject.php:100
        • 19. vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • 20. vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:419
        • 22. app/Models/Subject.php:101
        • 34. vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
      App\Models\SubjectCat
      10SubjectCat.php
      App\Models\HomeworkLibrary\HomeworkLibraryFile
      8HomeworkLibraryFile.php
      App\Models\HomeworkLibrary\HomeworkLibrary
      2HomeworkLibrary.php
      App\Models\Subject
      2Subject.php
          _token
          Zgz5wRZq90eKJEVFRmNS5jzzndecCFqoy5Yb8qbH
          utm_source
          direct
          redirectUrl
          /college-homework-library/Computer-Science/LISP-Family/26161
          _previous
          array:1 [ "url" => "https://staging.dev.24houranswers.com/college-homework-library/Computer-Scienc...
          _flash
          array:2 [ "old" => [] "new" => [] ]
          PHPDEBUGBAR_STACK_DATA
          []
          path_info
          /college-homework-library/Computer-Science/LISP-Family/26161
          status_code
          200
          
          status_text
          OK
          format
          html
          content_type
          text/html; charset=UTF-8
          request_query
          []
          
          request_request
          []
          
          request_headers
          0 of 0
          array:21 [ "priority" => array:1 [ 0 => "u=0, i" ] "accept-encoding" => array:1 [ 0 => "gzip, deflate, br, zstd" ] "sec-fetch-dest" => array:1 [ 0 => "document" ] "sec-fetch-user" => array:1 [ 0 => "?1" ] "sec-fetch-mode" => array:1 [ 0 => "navigate" ] "sec-fetch-site" => array:1 [ 0 => "none" ] "accept" => array:1 [ 0 => "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7" ] "user-agent" => array:1 [ 0 => "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)" ] "upgrade-insecure-requests" => array:1 [ 0 => "1" ] "sec-ch-ua-platform" => array:1 [ 0 => ""Windows"" ] "sec-ch-ua-mobile" => array:1 [ 0 => "?0" ] "sec-ch-ua" => array:1 [ 0 => ""HeadlessChrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"" ] "cache-control" => array:1 [ 0 => "no-cache" ] "pragma" => array:1 [ 0 => "no-cache" ] "x-amzn-trace-id" => array:1 [ 0 => "Root=1-67ffa402-2ba891a0419fa1b022ffc32d" ] "host" => array:1 [ 0 => "staging.dev.24houranswers.com" ] "x-forwarded-port" => array:1 [ 0 => "443" ] "x-forwarded-proto" => array:1 [ 0 => "https" ] "x-forwarded-for" => array:1 [ 0 => "3.144.2.213" ] "content-length" => array:1 [ 0 => "" ] "content-type" => array:1 [ 0 => "" ] ]
          request_cookies
          []
          
          response_headers
          0 of 0
          array:5 [ "content-type" => array:1 [ 0 => "text/html; charset=UTF-8" ] "cache-control" => array:1 [ 0 => "no-cache, private" ] "date" => array:1 [ 0 => "Wed, 16 Apr 2025 12:35:15 GMT" ] "set-cookie" => array:2 [ 0 => "XSRF-TOKEN=eyJpdiI6InFERTJZSk9HbWpLblJJbHM0bk51OWc9PSIsInZhbHVlIjoiU3hidUxUZldVVzBvM2ZVS3REQWRpU2psdGtqeVpsTTFmUWQ1OVBWc1ovdExOZ3hNSktEMTBIWVpyZWV6bnZCYk9DK2tnbUVqbnE5Zk9qRG4wWDlheXFkUnNQeUhTZDZxOVZDckp6RDlXay9LbUJZbjNSSG8yR1RuZW9IcitLVUIiLCJtYWMiOiJmYjMyNjU3NTE2ZDA0MWNmNDBmYmFmM2YzZDgyMDdmYTJlZDJhNjA0Y2Y3NWU1NjM0ZDI3MGEwNTUxY2M2NzhhIiwidGFnIjoiIn0%3D; expires=Wed, 16 Apr 2025 14:35:15 GMT; Max-Age=7200; path=/; domain=.24houranswers.com; samesite=laxXSRF-TOKEN=eyJpdiI6InFERTJZSk9HbWpLblJJbHM0bk51OWc9PSIsInZhbHVlIjoiU3hidUxUZldVVzBvM2ZVS3REQWRpU2psdGtqeVpsTTFmUWQ1OVBWc1ovdExOZ3hNSktEMTBIWVpyZWV6bnZCYk9DK2tnb" 1 => "24houranswers_session=eyJpdiI6IlNGcWp3SW9Ud0NjOHM2NGcxQkMvVkE9PSIsInZhbHVlIjoiUGUvbmFYb0hNd1A0RWhubzgzdTAvUHlIUGtCSjNOdUoyUlcyeXExWmQwUFJhb2VsVGNzVUd2ckNXR1QwQVFTSjRaRUxPbm5yZjRtQVRQdndKTUhmdGZTSjdKVVV0U2xMa2JXKzBrd2xLOFdpeURONk5lSC82dkpvT3hXRjJzdHYiLCJtYWMiOiI1N2JhYjM4NWI1NmZjNDhkYzM3MmM2YmY1ODJhNTg4Y2NhYjJjMzczOGRjNjBhYTEyYjNkNjliZjc3MDliOGRmIiwidGFnIjoiIn0%3D; expires=Wed, 16 Apr 2025 14:35:15 GMT; Max-Age=7200; path=/; domain=.24houranswers.com; httponly; samesite=lax24houranswers_session=eyJpdiI6IlNGcWp3SW9Ud0NjOHM2NGcxQkMvVkE9PSIsInZhbHVlIjoiUGUvbmFYb0hNd1A0RWhubzgzdTAvUHlIUGtCSjNOdUoyUlcyeXExWmQwUFJhb2VsVGNzVUd2ckNXR1QwQV" ] "Set-Cookie" => array:2 [ 0 => "XSRF-TOKEN=eyJpdiI6InFERTJZSk9HbWpLblJJbHM0bk51OWc9PSIsInZhbHVlIjoiU3hidUxUZldVVzBvM2ZVS3REQWRpU2psdGtqeVpsTTFmUWQ1OVBWc1ovdExOZ3hNSktEMTBIWVpyZWV6bnZCYk9DK2tnbUVqbnE5Zk9qRG4wWDlheXFkUnNQeUhTZDZxOVZDckp6RDlXay9LbUJZbjNSSG8yR1RuZW9IcitLVUIiLCJtYWMiOiJmYjMyNjU3NTE2ZDA0MWNmNDBmYmFmM2YzZDgyMDdmYTJlZDJhNjA0Y2Y3NWU1NjM0ZDI3MGEwNTUxY2M2NzhhIiwidGFnIjoiIn0%3D; expires=Wed, 16-Apr-2025 14:35:15 GMT; domain=.24houranswers.com; path=/XSRF-TOKEN=eyJpdiI6InFERTJZSk9HbWpLblJJbHM0bk51OWc9PSIsInZhbHVlIjoiU3hidUxUZldVVzBvM2ZVS3REQWRpU2psdGtqeVpsTTFmUWQ1OVBWc1ovdExOZ3hNSktEMTBIWVpyZWV6bnZCYk9DK2tnb" 1 => "24houranswers_session=eyJpdiI6IlNGcWp3SW9Ud0NjOHM2NGcxQkMvVkE9PSIsInZhbHVlIjoiUGUvbmFYb0hNd1A0RWhubzgzdTAvUHlIUGtCSjNOdUoyUlcyeXExWmQwUFJhb2VsVGNzVUd2ckNXR1QwQVFTSjRaRUxPbm5yZjRtQVRQdndKTUhmdGZTSjdKVVV0U2xMa2JXKzBrd2xLOFdpeURONk5lSC82dkpvT3hXRjJzdHYiLCJtYWMiOiI1N2JhYjM4NWI1NmZjNDhkYzM3MmM2YmY1ODJhNTg4Y2NhYjJjMzczOGRjNjBhYTEyYjNkNjliZjc3MDliOGRmIiwidGFnIjoiIn0%3D; expires=Wed, 16-Apr-2025 14:35:15 GMT; domain=.24houranswers.com; path=/; httponly24houranswers_session=eyJpdiI6IlNGcWp3SW9Ud0NjOHM2NGcxQkMvVkE9PSIsInZhbHVlIjoiUGUvbmFYb0hNd1A0RWhubzgzdTAvUHlIUGtCSjNOdUoyUlcyeXExWmQwUFJhb2VsVGNzVUd2ckNXR1QwQV" ] ]
          session_attributes
          0 of 0
          array:6 [ "_token" => "Zgz5wRZq90eKJEVFRmNS5jzzndecCFqoy5Yb8qbH" "utm_source" => "direct" "redirectUrl" => "/college-homework-library/Computer-Science/LISP-Family/26161" "_previous" => array:1 [ "url" => "https://staging.dev.24houranswers.com/college-homework-library/Computer-Science/LISP-Family/26161" ] "_flash" => array:2 [ "old" => [] "new" => [] ] "PHPDEBUGBAR_STACK_DATA" => [] ]