This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Cálculo de B(x,t) | |
*/ | |
System.out.println("\n***************************************************"); | |
System.out.println("******************PASSO 4.5 Cálculo de B(x,t)******"); | |
System.out.println("***************************************************\n"); | |
BigDecimal Bxt = BigDecimal.ZERO; | |
BigDecimal x = BigDecimal.ZERO; | |
BigDecimal t = new BigDecimal("365").setScale(30, RoundingMode.HALF_EVEN); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
System.out.println(""); | |
System.out.println("================================================"); | |
System.out.println("================ PASSO 8.0 ====================="); | |
System.out.println("================================================"); | |
System.out.println(""); | |
BigDecimal totalDeMassaNaFonte = BigDecimal.ZERO; //KG | |
totalDeMassaNaFonte = cti.multiply(pb).multiply(xSource).multiply(ySource).multiply(Lw.multiply(new BigDecimal("100"))).multiply(new BigDecimal(Math.pow(10d, -3d))); | |
System.out.println("Valor totalDeMassaNaFonte: " + nb.format(totalDeMassaNaFonte)); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
System.out.println(""); | |
System.out.println("================================================"); | |
System.out.println("================ PASSO 7.0 ====================="); | |
System.out.println("================================================"); | |
System.out.println(""); | |
BigDecimal Mass = BigDecimal.ZERO; | |
BigDecimal C = valoresCwxt.get(valoresCwxt.size() - 1); // é o ultimo valor de Cwxt | |
BigDecimal xSource = LENGTH_OF_SOURCE.multiply(new BigDecimal("100")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
System.out.println(""); | |
System.out.println("================================================"); | |
System.out.println("================ PASSO 8.0 ====================="); | |
System.out.println("================================================"); | |
System.out.println(""); | |
BigDecimal totalDeMassaNaFonte = BigDecimal.ZERO; //KG | |
totalDeMassaNaFonte = cti.multiply(pb).multiply(xSource).multiply(ySource).multiply(Lw.multiply(new BigDecimal("100"))).multiply(new BigDecimal(Math.pow(10d, -3d))).setScale(30, RoundingMode.HALF_EVEN); | |
System.out.println("Valor totalDeMassaNaFonte: " + nb.format(totalDeMassaNaFonte)); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package br.com.sed.seris.domain.simulation.concentration; | |
import java.io.Serializable; | |
import java.math.BigDecimal; | |
import java.math.MathContext; | |
import java.math.RoundingMode; | |
import java.text.DecimalFormat; | |
import java.text.NumberFormat; | |
import java.util.ArrayList; | |
import java.util.List; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package br.com.sed.seris.domain.simulation.concentration; | |
import java.io.Serializable; | |
import java.math.BigDecimal; | |
import java.math.MathContext; | |
import java.math.RoundingMode; | |
import java.text.DecimalFormat; | |
import java.text.NumberFormat; | |
import java.util.ArrayList; | |
import java.util.HashMap; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Ionic Starter App | |
// angular.module is a global place for creating, registering and retrieving Angular modules | |
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html) | |
// the 2nd parameter is an array of 'requires' | |
// 'starter.controllers' is found in controllers.js | |
angular.module('starter', ['ionic','ionic.service.core', 'starter.controllers']) | |
.run(function($ionicPlatform) { | |
$ionicPlatform.ready(function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error: [$injector:modulerr] Failed to instantiate module PushNotification due to: | |
Error: [$injector:nomod] Module 'PushNotification' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument. | |
http://errors.angularjs.org/1.4.3/$injector/nomod?p0=PushNotification |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VAGRANTFILE_API_VERSION = '2' | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = 'precise32' | |
config.vm.network :forwarded_port, guest: 80, host: 8080 | |
config.ssh.insert_key = false | |
end | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe List do | |
before(:each) do | |
@list = List.new | |
end | |
it "should be valid" do | |
@list.should be_valid | |
end | |
end |
OlderNewer