Research Article

[Retracted] Interactive Teaching Based on Artificial Intelligence and Its Application in Improving National Music Appreciation Ability

Table 2

Music appreciation ability algorithm.

Ability algorithm codeMusic appreciation network

To get distance between two pointInput neuron to
Double dist(pt a, pt b)Method of the main
{Int double get_sum(pt p0, int n)Users enter the system
Return sqrt(sqr(a.x − b.x) +a);The data access
For(int i = ; i < n; ++i)Through the browser
Ret + = dist(p0, p[i]);Music appreciation system
Int mainAccording to the
X += (p[i].x − x0)/dist((pt){x0, y0}, p[i]);In the output layer
Y += (p[i].x − y0)/dist((pt){x0, y0}, p[i]);Used in music
F{x0 + xtemp, y0 + ytemp}, n);Performance evaluation
Double tmp = get_sum((pt)Input parameters
Sqr(a.y − b.y)Mentioned above
Z(ans−temp)/temp)Delivered by the server
Else if(math.exp(>random())Corresponding to two output