Categories
Mastering Development

Error: ‘Invalid Character in Idnetifier’ when trying to solve ODE’s in python

In the picture below you can see the code I am trying to execute to solve an ODE but I get an error and I do not know how to fix it. I am new to programming and am learning now how to code in python to solve ODEs. The code is from this material: […]

Categories
Ask Chemistry

Why does Enthalpy of Formation of alkali metal Fluorides Decrease down the Group and for Chloride ,Bromide and Iodide Increase Down the Group?

My Question arises from the following passage The alkali metal halides, MX, (X=F,Cl,Br,I) are all high melting, colourless crystalline solids. They can be prepared by the reaction of the appropriate oxide, hydroxide or carbonate with aqueous hydrohalic acid (HX). All of these halides have high negative enthalpies of formation; the $\Delta_fH^{\circ}$ values for fluorides become […]

Categories
Development

tkinter window performance with a fast animation

whenever i make an animation where there is something new being drawn really quickly, when tk opens, the animation is much slower than it should be however, tk window’s speed changes in these circumstances: “holding” tk window – it stops and then it continues faster, but not quite as wanted on release – it continues […]

Categories
Development

Multiplying matrices across tenor axis with numpy and with GPU

I have a matrix X with shape (F,T,M). I wish to multiply each (T,M) matrix along the F axis so that the answer will be of shape (M,M,F). This code does the job for me but this operation repeats many times and it is very slow: for f in range(F): output[:,:,f] = np.matmul(X[f,:,:].T,X[f,:,:]) All I […]