Click here to Skip to main content
15,889,909 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
without using graphic file and it should on the formula of Einstein's variation of mass w.r.t velocity [i.e. m =mo /{1 – pow(v/c,2)}1/2

What I have tried:

i have tried this one in Dev-c++
Posted
Updated 14-Oct-19 22:37pm
Comments
Richard MacCutchan 14-Oct-19 11:07am    
And what was the result?

We are more than willing to help those that are stuck: but that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you.

So we need you to do the work, and we will help you when you get stuck. That doesn't mean we will give you a step by step solution you can hand in!
Start by explaining where you are at the moment, and what the next step in the process is. Then tell us what you have tried to get that next step working, and what happened when you did.
 
Share this answer
 
Comments
CPallini 15-Oct-19 3:57am    
5.
Member 14622369 20-Oct-19 2:12am    
We are not yet taught about how to make program for graph and this was asked by our phy teacher in his assainment,not for grades or anything else
You need to write some good, so best it to do it with some structure. So use some math function to calculate an array of results and than do some drawing like described in this article and this advanced paint tutorial.
 
Share this answer
 
Comments
CPallini 15-Oct-19 3:57am    
5.
As an alternative, you may use just console output ('graph of stars' *) and avoid using arrays if you rotate the axys (that is speed on Y, mass on X).
Here is an output example (relative mass, m/m0, on X, speed on Y, the scale on X is logarithmic).
                                           *                                     
      *                                                                          
    *                                                                            
   *                                                                             
   *                                                                             
  *                                                                              
  *                                                                              
  *                                                                              
 *                                                                               
 *                                                                               
 *                                                                               
 *                                                                               
 *                                                                               
 *                                                                               
*                                                                                
*                                                                                
*                                                                                
*                                                                                
*                                                                                
*                                                                                
*                                                                                
*                                                                                
*                                                                                
*                                                                                
*                                                                  
 
Share this answer
 
Comments
Richard MacCutchan 15-Oct-19 5:50am    
That's just a picture of a firework exploding. :/
CPallini 15-Oct-19 6:28am    
Exactly.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900