3 votes

Projectile Motion Simulation with Aerodynamics using Euler's Method

You are not updating the angle in your simulation as the velocity vector is changing. Here is a modified version of your 'animate' function and the result. ...
  • 254
2 votes
Accepted

why do i receive this error?

Alright I've taken a closer look a the code. One first advice that I could give you is to try to understand how the code works. It is very easy to understand that the for-loop is a time loop, i.e. the ...
  • 1,450
2 votes

Plot of a function involving an integral and value changing parameters

Your function func(rho, gamma) takes two arguments while you pass only one (I think none). That is what your error tells you. Recheck where you use ...
  • 21
2 votes

Plotting ratings matrix

I was able to do it this way though it may had been easier to plot it the way Federico has mentioned before: imagesc(A). I declared an A matrix of zeros of mxn dimension and then loaded the ratings. ...
1 vote
Accepted

Animation using matplotlib

There are two similar questions: Animation moving point error and How to animate a scatter plot on StackOverflow. Both were answered with some example code for you to try.
  • 6,091
1 vote

create a heavyside function with any value on python

What happens as you add more points to your domain near $x=x_c$? Also, many (most, all(?)) definitions of the Heaviside step function give a value of the mean of the extremes at the transition point, ...
  • 10.8k
1 vote
Accepted

How to plot a heatmap under a curve?

I answered a similar question in StackOverflow. The main "trick" is to transform your grid before plotting. For example, using the following transformation \begin{align} &t' = t\, ,\\ &x' = ...
  • 8,129

Only top scored, non community-wiki answers of a minimum length are eligible