How Do i make this ER diagram im new and im confused

So i’m new at designing database and i got my first homework which is the following:

  • Courses, Students, Lecturers
  • Courses have ids, titles, credits,
  • Courses have multiple sections that have time/room and exactly one teacher
  • Must track students’ course schedules and transcripts including grades, semester taken, etc.
  • Must track which classes a lecturer has taught
  • Database should work over multiple semesters

If i’m not wrong on the first one i need to make 3 entities which name Courses, Students and Lectures and on the second one i should make an attribute for Courses and name them ids, titles and credits but then i dont understand the rest of the homework i tried goggling them but i’m so lost, any help would be appreciated.

Unable to plot Bifurcation diagram of duffing equation

    bifurcation[dmin_, dmax_, nd_, gamma_, A_, ndrop_, nplot_,    psize_] := (T = 2*Pi/omega;   g[{xold_, vold_}] := {x[T], v[T]} /.      NDSolve[{v'[t] ==          0.847 x[t] - 0.0721 x[t]^3 - gamma*v[t] + A*Cos[omega*t],         x'[t] == v[t], x[0] == xold, v[0] == vold}, {x, v}, {t, 0,         T}][[1]];   f[{x_, y_}] := {omega, x};   ListPlot[    Flatten[Table[      f /@ Drop[NestList[g, {1, 0}, nplot + ndrop], ndrop], {omega,        dmin, dmax, (dmax - dmin)/nd}], 1],     PlotStyle -> {PointSize[psize], Hue[0]},     AxesLabel -> {"\[Omega]", "x"}, AxesOrigin -> {dmin, -0.3}])   bifurcation[0.1, 0.8, 200, 0.01, 0.00172, 1200, 500, 0.006] 

I am expecting chaos around somewhere near omega=0.45 but instead I am getting just straight line.Straight line bifurcation diagram for given parameters

Database diagram for school management app

I am currently making a management software for a small artistic school: a small intranet in PHP / MySQL.

I’m trying to draw database architecture before I start coding because I don’t want to make bad choices right from the beginning.

My diagram can be found below.

The software requirements are as follows:

  • Register a student for a school year and assign them to one or more courses
  • Register a student for a unique event (Concert, Masterclass, internship …)
  • Register teachers and assign them to one or more courses
  • Manage the student financial side, the number of payments and the total cost of the training
  • And later there will be other needs like saving marks, schedules, and maybe other things …

I tried to transcribe it all on my diagram, but here are some explanations:

  • A student (student table) is unique and can register for several years. This table contains all the generic information (name, email, phone …)
  • A student registration (enrollment table) can follow several courses (course table) and several events (events table)
  • A student can pay for their training in one or more installments (funding table)
  • A course is given by a single teacher (trainer table) and an event is given by a single speaker (speaker table)

Is this the best way to keep a student’s information over several school years? Should I add some optimizations?

Database diagram

How to make a circular heat map or diagram in Mathematica?

Is there any way to make a circular heat map in Mathematica?

Thanks for your help!

Here is a toy example for regular heat map. Can anyone help me make it to a circular one?

data1={{9., 1., 6., 7., 6., 3., 1., 3., 10., 2., 2., 5., 2., 5., 3.,    1.}, {5., 5., 5., 4., 4., 6., 4., 6., 9., 1., 2., 10., 2., 1., 1.,    6.}, {2., 7., 6., 2., 8., 10., 8., 9., 2., 5., 3., 9., 7., 8., 7.,    5.}, {6., 6., 2., 1., 8., 2., 8., 3., 8., 5., 5., 4., 6., 2., 3.,    6.}, {8., 1., 8., 2., 5., 8., 5., 3., 5., 3., 4., 2., 2., 4., 4.,    1.}, {10., 2., 8., 10., 3., 6., 1., 9., 3., 5., 2., 5., 1., 3., 7.,    9.}};  ArrayPlot[data1, ColorFunction -> ColorData["LightTerrain"],   Frame -> True,   FrameTicks -> {{{{1, "r1"}, {2, "r2"}, {3, "r3"}, {4, "r4"}, {5,        "r5"}, {6, "r6"}}, None},    {None, {{1, "c1"}, {2, "c2"}, {3, "c3"}, {4, "c4"}, {5, "c5"}, {6,        "c6"}, {7, "c7"}, {8, "c8"}, {9, "c9"}, {10, "c10"}, {11,        "c11"}, {12, "c12"}, {13, "c13"}, {14, "c14"}, {15, "c15"}, {16,        "c16"}}}},   Epilog -> {Text["Sector1", {2, 8}], Text["Sector2", {6, 8}],     Text["Sector3", {10, 8}], Text["Sector4", {14, 8}]},   ImagePadding -> {{20, 20}, {20, 80}}, ImageSize -> Large] 

enter image description here

I want to make a circular diagram like the following one.

enter image description here


Is it possible to make a one like this?

enter image description here

Thanks a lot!

Is the DMG 3/4 cover diagram in 5e incorrect?

From page 250 and 251 of the DMG:

To determine whether a target has cover against an attack or other effect on a grid, choose a corner of the attacker’s space… trace imaginary lines from that corner to every corner of any one square the target occupies. If one or two of those lines are blocked by an obstacle (including another creature), the target has half cover…

grid diagrams taken from the DMG. The final diagram shows the construction lines provided in the DMG to determine cover (showing 3/4th cover) as well as the question askers own construction lines, superimposed showing it should be half cover.

It looks like they just chose the wrong corner. If the attacker was moved one square to the north it would be 3/4 cover. Or do you think they meant "choose the closest corner"?

Minimize shadows placing light sources on a diagram of a room

I’m a CS student and came upon this problem:

Given a diagram of a room with obstacles in it (like walls or furniture), find the 4 best places to put light sources in it so the room has the most light possible, or you can think of, minimizing the amount of shadow in the room.

In other words, if you have 4 sources of light, which are the best places to put them so your room has maximum light (or minimum shadow).

I’ll append an example of a diagram so the problem can be better understood: example of a diagram

The solution I thought was to find the spot with most light and from there find the second one and so on. But something makes me think that it may exist a configuration which is better that doesn’t need to be the best from the beginning, kinda feels like a special case of the knapsack problem, if so I’d think of implementing a greedy algorithm or using genetic algorithms to give an approximation of the best places.

I’m not sure if it’s a math or a CS problem. I’d be grateful if at least someone points me in the right direction so I can do a better research, thank you very much!

Butterfly diagram from cooley-tukey algorithm

I am trying to understand the logic of this algorithm so i can implement my own but i am not understanding this diagram i see appearing many times in a fair few articles on the topic, i am teaching myself so i don’t have a computer science degree to help. But i understand the general idea behind the algorithm.

But this butterfly diagram is confusing me.

enter image description here

How do you interpret this diagram from left to right mathematically speaking? It’s so confusing.. what are the arrows telling me to do in terms of math operations on the functions?

Need help designing ER Diagram

I am not a database engineer, I am just getting started with designing data models.

A User registers to my application. My application has Funds that are predefined with an InvestmentStrategy. A user deposits cash into their account Bankroll. A user invests from their Bankroll into a Fund or multiple. A fund buys into Investments. A User selects Picks to guide the InvestmentStrategy. The InvestmentStrategy uses historical Pick evidence by User to determine which Investments to make. Investments have Results, which pay Users based on performance. A User can leave a Fund. A User can withdraw from their Bankroll. A InvestmentStrategy can also pay percentage of profit to User.

This leads to a wide array of circular relationships. I am having a hard time drawing an ER diagram describing the entities and relationships above. Does anyone have examples or suggestions for how to create their model? Thanks!