for i=1:n phi_x(i)=X(i,1)^2; phi_y(i)=X(i,2)^2;| phi_z(i)=sqrt(2)*(2*X(i,1)*X(i,2)); end
for i=1:n phi_x(i)=X(i,1)^2; phi_y(i)=X(i,2)^2;| phi_z(i)=sqrt(2)*(2*X(i,1)*X(i,2)); end
New Perspectives on HTML5, CSS3, and JavaScript
6th Edition
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Patrick M. Carey
Chapter14: Exploring Object-based Programming: Designing An Online Poker
Section14.1: Visual Overview: Custom Objects, Properties, And Methods
Problem 7QC
Related questions
Question
can anyone explain the code in the red box?
![for i=1:n
phi_x(i)=X(i,1)^2;
phi_y(i)=X(i,2)^2;|
phi_z(i)=sqrt(2)*(2*X(i,1)*X(i,2));
end](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fab0ca517-e6ba-408c-991e-26d4ada59cde%2F0b3c4ee6-d95d-4dc7-a060-a3b1d6420a56%2Fbi4r32r.png&w=3840&q=75)
Transcribed Image Text:for i=1:n
phi_x(i)=X(i,1)^2;
phi_y(i)=X(i,2)^2;|
phi_z(i)=sqrt(2)*(2*X(i,1)*X(i,2));
end
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![New Perspectives on HTML5, CSS3, and JavaScript](https://www.bartleby.com/isbn_cover_images/9781305503922/9781305503922_smallCoverImage.gif)
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning
![New Perspectives on HTML5, CSS3, and JavaScript](https://www.bartleby.com/isbn_cover_images/9781305503922/9781305503922_smallCoverImage.gif)
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning