Read about programming | 142 Discussions | Page 1

  1. sa1988

    Pure Physicist - A physics simulator app

    There are plenty of physics apps around already but most seem to just be words and pictures. I haven't found many that offer good simulators for proper textbook physics. So I made one. Pure Physicist - Google Play The underlying physics 'engine' uses the as yet incomplete University Physics...
  2. J

    Best Environment/Programming Language for simple physics Simulations

    Hello, I am looking for something to simulate/visualize simple particles and classical physics equations, preferably moving in real time Requirements: -Able to turn matrices/functions into geometric representations(visualize sphere, visualize a cylinder etc.) -Can do the classic ball bouncing...
  3. Daniel Lima

    Python How to plot a function with multiple parameters on the same set of axes

    I attached a file with some explanations of the variables in the code and the plot that I should get. I don't know what is wrong. Any help will appreciated. from scipy.integrate import quad import numpy as np from scipy.special import gamma as gamma_function from scipy.constants import e...
  4. A

    Execution of a Computer Program

    Hello Everyone, I want to know about various types of errors that can occur during the execution of a computer program? I am learning programming skills right now and Can anyone know about it? Or anyone knows which types of questions have put in a programming based profile as a beginner point?
  5. sa1988

    C/++/# Open Source C# Physics Library

    TL:DR; I've started an open source C# physics library: University Physics The Long Version So it turns out there's relatively little in the way of full physics libraries written in C# (the best I can find is bepuphysics which seems to be focused only on classical mechanics). With this...
  6. astroman707

    B How prevalent is the R language in astronomy research?

    I’ve heard that C++, python, and IDL are most commonly used in observational astronomy research, but how common is R in the field?
  7. E

    Job Skills Leaving a 2nd Master's degree to accept an offer abroad

    This is my first post so don't be too harsh. I was just looking to get additional opinions in order to make a more informed decision. Since I always had the idea of becoming an astrophysicist I enrolled in Bsc in physics engineering (5 years) here, and due to being the top student I was invited...
  8. Abimbola1987

    FPGA/CPLD advice appreciated

    Dear Sirs, I'm using Microchip PIC's as programmable laboratory timer among other things, but the 100ns instruction cycles are not adequate anymore. So I thought of beefing it up with a 5M40Z MAX-V CPLD which has 5ns end-to-end delay, bought the programmer and downloaded the Quartus Prime Lite...
  9. Mark44

    Insights AVX-512 Assembly Programming: Opmask Registers for Conditional Arithmetic Conclusion - Comments

    Greg Bernhardt submitted a new blog post AVX-512 Assembly Programming: Opmask Registers for Conditional Arithmetic Conclusion Continue reading the Original Blog Post.
  10. Mark44

    Insights AVX-512 Assembly Programming: Opmask Registers for Conditional Arithmetic - Comments

    Greg Bernhardt submitted a new blog post AVX-512 Assembly Programming: Opmask Registers for Conditional Arithmetic Continue reading the Original Blog Post.
  11. L

    Looking for ideas for a physics related application

    Hi! I am a computer science student and I want to program an application to improve my programming skills. I am interested in physics and have taken 3 physics courses at University, and would like to look deeper into a specific area during this project. It can be an extensive project, as I have...
  12. Mark44

    Insights An Intro to AVX-512 Assembly Programming - Comments

    Greg Bernhardt submitted a new blog post An Intro to AVX-512 Assembly Programming Continue reading the Original Blog Post.
  13. scottdave

    Sites for some practice programming

    This is not a question, but a note, which I thought could help students. I thought I would share this here, as people may be looking for practice problems. My professor in the Python course I just finished recommended https://projecteuler.net/ as a site to practice using programming skills...
  14. S

    I A change in the dielectric constant changes the current or voltage?

    hi everyone! i am not into physics, but need it now,i am a programmer workin on an IOT project...so kinda need help. i want to use a capacitor to see what passed between two plates...knowing, it is the change in dielectric after certain intervals......how do i measure the change at the other...
  15. Ottodomus

    Fortran Need to do a multitask program in Fortran 95

    Hi everyone, I am new programming in Fortran and Inhave done about three or four programs that solves different problems in trigonometry, one is the basic one it gives you hypotenuse upon two sides, the other finds the theta angle by giving hypotenuse and opposite side, other find hypotenuse by...
  16. S

    Is the use of null an anti-pattern?

    I remember a while back someone told me that there exist programmers who don't believe in null. I thought that was a crazy idea. Until recently, as I've gotten better at OOP and have figure out that if my object has a property that is allowed to be set to null, it usually means that I am not...
  17. S

    Event-driven system and subscribers missing events

    Let's say I have a service that publishes events, like eo ("Bought 100 shares of AAPL") e1 ("Bought 100 shares of T") e2 ("Sold 500 shares of TSLA") and there exist stateful services subscribing to the events and whose state depends on the events being processed successfully and in the correct...
  18. QuantumQuest

    Insights Intro to Data Structures for Programming - Comments

    Greg Bernhardt submitted a new blog post Intro to Data Structures for Programming Continue reading the Original Blog Post.
  19. astroman707

    Programs Is a 2nd major in comp sci useful in computational physics?

    I'm majoring in physics and I'm planning on pursuing computational astrophysics in graduate school. Will a second major in computer science/programming look good to graduate schools, and/or will it give me great advantages in the field of computational astrophysics or astronomy?
  20. Quantum_Arcanium

    Physics Want to become Theoretical Physicist but don't know Coding

    Hi, I am an aspiring Theoretical Physicist. I've heard that you need to know many programming languages to become a Physicist, but I have never learned a single programming language in my life and I am 16-17 years old now. Is there any chance of me still becoming one? Is there anything I can do...
  21. astroman707

    Other How to transition from school teacher to programmer?

    I’ve been a school teacher for 6 years, and I want to get into coding. I’ve been told by a CS professor I know that my background is very sought after in the tech industry, and I would be very competitive if I got into coding. Is this true? What’s the best route, bootcamp, nanodegree, etc.? What...
  22. astroman707

    Programs Should my second major to physics be programming or math?

    I’m planning on attending graduate school for physics. My interest is currently in cosmology and astrophysics, but I’m keeping an open mind. I’d like to be prepared in case I choose another field, or go into private sector instead of academia. I’ve decided I want to double major in my...
  23. W

    The coming revolution in physics education

    Classical physics is difficult because it is based on differential equations, and the differential equations of interest are usually unsolvable. The student must invest a lot of time in learning difficult math, and still can only analyze very simple systems. This difficulty arises in the first...
  24. U

    How to calculate triac angle to set desired RMS voltage

    Hi, I would like to implement voltage regulator based on microcontroller + triac. I am able to calculate source RMS voltage by sampling signal using ADC, but dont know how to calculate triac angle to set desired RMS voltage. For example i have 250v source RMS voltage and i need to calculate...
  25. QuantumQuest

    Insights Intro to Algorithms for Programming - Comments

    Greg Bernhardt submitted a new PF Insights post Intro to Algorithms for Programming Continue reading the Original PF Insights Post.
  26. L

    Addition of two plane waves

    To whom it may concern, I am having issues with a given assignment in my quantum mechanics class. The instructions listed below are all I have to go on since the prof. is not available for discussion and I have searched through at least 15 articles regarding plane waves and a dozen textbooks...
  27. J

    I need help decrypting this

    00110100 00110011 00100000 00110100 00111001 00100000 00110100 00110011 00100000 00110100 00110001 00100000 00110100 00110100 00100000 00110100 00110001 00100000 00110010 00110000 00100000 00110011 00110011 00100000 00110011 00110011 00100000 00110011 00110000 00100000 00110011 00110001
  28. pairofstrings

    What should be the rules to write excellent code?

    Hi. I know few rules that lets me write great code: 1. "don't pollute the global namespace" when I sit down to write JavaScript code. 2. SOLID 3. KISS 4. Liskov's Open-Closed principle Can someone help me complete the list of such rules? Thanks! Have a great day!
  29. O

    Recommended physics engine?

    Hello! I'm trying to write a 2D program that uses simple physics. I was wondering what would be the best 2D physics engine to use in my case, and if it even matter what engine I choose. I also want my simulation to run in real time, so at least 30 fps on a decent home computer. I prefer a fast...
  30. J

    Magnetostatics experiment flowchart - How can I improve this

    Homework Statement I'm attempting to write a FORTRAN program that calcuates the magnetic field, B, at any point outside of a bar magnet. I will be using a simple first order euler scheme for numerical surface integration. Homework Equations Here is the exact method I will be using...
Top